git更改分支名称

  • Post author:
  • Post category:其他
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

 


版权声明:本文为qq_39539575原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。