I don't want to rename a remote branch, as described in Rename master branch for both local and remote Git repositories . 我不想重命名远程分支,如重命名本地和远程Git存储库的master分支中所述。 git
How can I rename a local branch which hasn't been pushed to a remote branch? 如何重命名还没有推送到远程分支的本地分支? spa
In case you need to rename remote branch as well: 若是您还须要重命名远程分支:
How do I rename both a Git local and remote branch name 如何重命名Git本地和远程分支名称 .net