git - Point current repo to a different repo -


this question has answer here:

i have repository (a) have been building code, have same older code version in different repo (b) best way bring repo (a) repo (b). repo (a) should go away. want point towards b.

out of these options 1 practice:

  1. edit .git/config file url - instead of url (a) use url (b) , push changes

  2. do pull request , bring in changes (not sure repo repo can done (a) not branch of (b).

maybe there are better ways above two.

there bunch of ways, "correct" add new remote repo b, , push it

$ git remote add repo-b http://my-address-for-repo-b  $ git push repo-b master 

Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -