开发者

Git: Change master branch?

开发者 https://www.devze.com 2023-04-03 09:59 出处:网络
Say I have thesegit branches: master branchone I want to do this, keeping all history intact: master -> oldmaster

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

精彩评论

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