Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git clone git@github.com:user_a/repo.git
- cd repo
- git branch -m master old-master
- git symbolic-ref HEAD refs/heads/new-master
- rm .git/index
- git clean -fdx
- # add a remote for user_b's repo, call it, say, user_b
- git pull user_b master:new-master
- git branch -m new-master master
- git push origin master
Add Comment
Please, Sign In to add comment