Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. # Rename origin to old-origin
  2. git remote rename origin old-origin
  3.  
  4. # Add new origin url
  5. git remote add origin <new-remote>
  6.  
  7. # Fetch all branches and tags from old-origin
  8. git fetch old-origin --prune
  9.  
  10. # Push all branches and tags from old-origin to new origin
  11. git push --prune origin +refs/remotes/old-origin/*:refs/heads/* +refs/tags/*:refs/tags/*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement