markdown 重命名推送的分支

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 重命名推送的分支相关的知识,希望对你有一定的参考价值。

#### On the branch (LOCALLY)
* `git branch -m new-name`
#### On a different branch
* `git branch -m old-name new-name`
#### If branch is already pushed (REMOTELY)
* Delete the old branch
  * `git push origin :old-name new-name`
* Switch into the branch if not already in, to reset the upstream branch
  * `git push origin -u new-name`

以上是关于markdown 重命名推送的分支的主要内容,如果未能解决你的问题,请参考以下文章