Guest User

Untitled

a guest
Mar 8th, 2018
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. git clone git@github.com:user_a/repo.git
  2. cd repo
  3. git branch -m master old-master
  4. git symbolic-ref HEAD refs/heads/new-master
  5. rm .git/index
  6. git clean -fdx
  7. # add a remote for user_b's repo, call it, say, user_b
  8. git pull user_b master:new-master
  9. git branch -m new-master master
  10. git push origin master
Add Comment
Please, Sign In to add comment