# 如果当前就在要重命名的分支上,可以不加`old_branch`参数 $ git branch -m [old_branch] <new_branch>
$ git push -d <remote_name> <old_remote_branch_name> $ git push -u <remote_name> <local_branch_new>:<new_remote_branch_name>
How do I delete a Git branch locally and remotely?
本文来自博客园,作者:Legend_Lone,转载请注明原文链接:https://www.cnblogs.com/sun-ye/p/15058188.html