您的位置:首页 > 其它

[Git] How to rename your remote branch

2017-04-18 19:06 330 查看
Rename your local
foo
branch with
bar
:

git branch -m foo bar


Remember this will add the new branch when you
push
, but it won’t delete the old
foo
remote branch.

Add
-f --mirror
to rename the branch on the remote:

git push origin -f --mirror


If you just want to remove your remote
foo
branch, just use:

git push origin :foo
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: