github删除远程分支&重命名远程分支

来源:互联网 发布:js文件为什么不能编辑 编辑:程序博客网 时间:2024/06/05 14:16

1.删除远程分支

git push origin –delete 分支名

2.重命名远程分支

git branch -m <old_name> <new_name> 改名字git checkout -b <new_branch_name> (<from_branch_name>) 本地建立 branch 並立即 checkout 切換過去git push origin –delete <old_name>
0 0