问题:
I don't want to rename a remote branch, as described in Rename master branch for both local and remote Git repositories . 我不想重命名远程分支,如重命名本地和远程Git存储库的master分支中所述。
How can I rename a local branch which hasn't been pushed to a remote branch? 如何重命名尚未推送到远程分支的本地分支?
In case you need to rename remote branch as well: 如果您还需要重命名远程分支:
How do I rename both a Git local and remote branch name 如何重命名Git本地和远程分支名称
解决方案:
参考一: 如何重命名本地Git分支?参考二: How do I rename a local Git branch?
来源:oschina
链接:https://my.oschina.net/stackoom/blog/3208411