Py学习  »  Git

是:git push<remote name>--delete<remote branch name>的某种别名吗?

leeand00 • 5 年前 • 532 次点击  

正在运行类似于 $ git push origin :remote-branch 捷径 git push <remote-name> --delete <remote-branch-name>

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/51126
 
532 次点击  
文章 [ 1 ]  |  最新文章 5 年前
padawin
Reply   •   1 楼
padawin    6 年前

对。从 man git-push :

格式是 git push <repository> <refspec> ,与 <refspec> 描述如下:

<refspec>
       Specify what destination ref to update with what source object. 
       The format of a <refspec> parameter is an optional plus +, followed
       by the source object <src>, followed by a colon :, followed by
       the destination ref <dst>.

然后:

推空 <src> 允许您删除 <dst> 来自远程存储库的ref。