git更改分支名称

git branch -m old_branch new_branch // Rename branch locally 
git push origin :old_branch // Delete the old branch 
git push --set-upstream origin new_branch // Push the new branch, set local branch to track the new remote

 

posted @ 2019-09-09 11:41  林深时见鹿!  阅读(233)  评论(0编辑  收藏  举报
博客已稳定运行: