简体   繁体   中英

How to copy Rails app with existing git repository?

I want to copy and paste my Rails app, only with different name. Here is my problem.

When I go into my new rails app folder its on master branch, but I can't push anything from there. It belongs to my first(old) app. I should remove git from new app and make entirely new repository, or even better copy and paste repository from old app and change its name, so I could push new app to new repository and old app to old repository.

is there away to do this.

look in the .git/config for

[remote "origin"]
  url = git@bitbucket.org:some_path.git
  fetch = +refs/heads/*:refs/remotes/origin/*

and change that

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM