Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Move/Merge Git into different remote

Merge Git repository into second remote

Some times you need to move or merge git repositories... here is the general list of commands

git remote rename origin upstream
git pull upstream master
git remote add origin NEW_URL_HERE
git pull origin master --allow-unrelated-histories
…do merge voodoo…
git push upstream master
git push origin master

Based on Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment