git push的完整命令是:

// origin为远程仓库名
git push origin <source>:<destination>

不管当前HEAD在哪里,该命令将本地的分支<source>推送到远程的分支<destination>

如果<source>省略,则会删除远程分支。

即:

git push origin :<destination>

[git]删除远程分支

 

相关文章:

  • 2021-12-24
  • 2021-06-16
猜你喜欢
  • 2021-07-22
  • 2021-10-14
  • 2021-06-16
相关资源
相似解决方案