修改分支名称
1、本地分支:
$ git branch -m old_branch new_branch
2、远程分支:
# Delete the old branch
$ git push origin :old_branch
# Push the new branch, set local branch to track the new remote
$ git push --set-upstream origin new_branch
1、本地分支:
$ git branch -m old_branch new_branch
2、远程分支:
# Delete the old branch
$ git push origin :old_branch
# Push the new branch, set local branch to track the new remote
$ git push --set-upstream origin new_branch