git 本地分支和远程分支改名字
1.将本地分支进行改名:
git branch -m old_branch new_branch
2.将本地分支的远程分支删除:
git push origin :old_branch
3.将改名后的分支push到远程,并让本地分支关联远程分支:
git push --set-upstream origin new_branch
1.将本地分支进行改名:
git branch -m old_branch new_branch
2.将本地分支的远程分支删除:
git push origin :old_branch
3.将改名后的分支push到远程,并让本地分支关联远程分支:
git push --set-upstream origin new_branch