Git: Change master branch?
Say I have these git branches:
master
branchone
I want to do this, keeping all history intact:
master -> oldmaster
branchone -> 开发者_如何学Pythonmaster
You can use git branch -m
.
git branch -m master tmpbranch
git branch -m branchone master
git branch -m tmpbranch branchone
精彩评论