周梦康 发表于 2016-08-11 1546 次浏览 标签 : git

到这里看吧,统一汇总 https://mengkang.net/1122.html 

zhoumengkang@OSX10111-3c15c2ba060a:~/IdeaProjects/php/atatech-org$ git branch
* develop
  newui
  summit-meeting
  test
zhoumengkang@OSX10111-3c15c2ba060a:~/IdeaProjects/php/atatech-org$ git push origin --delete summit-meeting
To http://gitlab.xxx.com/xxxx.git
 - [deleted]         summit-meeting
zhoumengkang@OSX10111-3c15c2ba060a:~/IdeaProjects/php/atatech-org$ git branch
* develop
  newui
  summit-meeting
  test
zhoumengkang@OSX10111-3c15c2ba060a:~/IdeaProjects/php/atatech-org$ git branch -r
  origin/HEAD -> origin/develop
  origin/bugfix
  origin/develop
  origin/master
  origin/newui
zhoumengkang@OSX10111-3c15c2ba060a:~/IdeaProjects/php/atatech-org$ git branch -d summit-meeting
Deleted branch summit-meeting (was c77b4c8).
zhoumengkang@OSX10111-3c15c2ba060a:~/IdeaProjects/php/atatech-org$ git branch
* develop
  newui
  test

我在 ide 里工具操作删除远程分支的代码是

git -c core.quotepath=false push --progress --porcelain origin :summit-meeting
To http://gitlab.xxx.com/xxx.git
-	:refs/heads/summit-meeting	[deleted]
Done

和自己输入的是一个作用么?为什么不统一呢?

git push origin -d summit-meeting


评论列表