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:
edit .git/config file url - instead of url (a) use url (b) , push changes
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
Post a Comment