如何重命名本地Git分支? - How do I rename a local Git branch?

问题:

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


解决方案:

参考一: https://stackoom.com/question/Reft/如何重命名本地Git分支
参考二: https://oldbug.net/q/Reft/How-do-I-rename-a-local-Git-branch
相关文章
相关标签/搜索