我不想像Rename master branch for both local and remote Git repositories中描述的那样重命名远程分支。
我该如何重命名一个还未推送到远程分支的本地分支?
如果需要同时重命名远程分支,请参考:How do I rename both a Git local and remote branch name.
我不想像Rename master branch for both local and remote Git repositories中描述的那样重命名远程分支。
我该如何重命名一个还未推送到远程分支的本地分支?
如果需要同时重命名远程分支,请参考:How do I rename both a Git local and remote branch name.
git checkout <old_branch>
git branch -m <new_branch>
git push origin -u <new_branch>
git branch -m <old_name> <new_name>
。 - kapsiR