开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜