Git修改本地分支和遠(yuǎn)程分支名稱:
1.將本地分支改名
git branch –m old_branch new_branch
2.將本地分支的遠(yuǎn)程刪除
git push origin :old_branch
3.將新分支推到遠(yuǎn)程
git push --set-upstream origin new_branch
1.將本地分支改名
git branch –m old_branch new_branch
2.將本地分支的遠(yuǎn)程刪除
git push origin :old_branch
3.將新分支推到遠(yuǎn)程
git push --set-upstream origin new_branch