1.git branch -m old-branchName new-branchName 2. git push --delete origin old-branchName 3.将新分支名推上去 git push origin new-branchName 4.将新本地分支和远程相连 git branch --set-upstream-to origin new-branchName