Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Rename origin to old-origin
- git remote rename origin old-origin
- # Add new origin url
- git remote add origin <new-remote>
- # Fetch all branches and tags from old-origin
- git fetch old-origin --prune
- # Push all branches and tags from old-origin to new origin
- git push --prune origin +refs/remotes/old-origin/*:refs/heads/* +refs/tags/*:refs/tags/*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement