解答当前处于需重名的分支上时当前处于其他分支上时 解答 当前处于需重名的分支上时git branch -m new-branch-name 当前处于其他分支上时git branch -m old-branch-name new-branch-name