首页 > 其他 > 详细

git 删除远程master 分支

时间:2015-05-22 16:56:09      阅读:5399      评论:0      收藏:0      [点我收藏+]

?  fekit-extension-yo git:(dev) git push origin :master
remote: error: By default, deleting the current branch is denied, because the next
remote: error: git clone wont result in any file checked out, causing confusion.
remote: error:
remote: error: You can set receive.denyDeleteCurrent configuration variable to
remote: error: warn or ignore in the remote repository to allow deleting the
remote: error: current branch, with or without a warning message.
remote: error:
remote: error: To squelch this message, you can set it to refuse.
remote: error: refusing to delete the current branch: refs/heads/master
To git@gitlab.corp.qunar.com:fed/yobuilder.git
 ! [remote rejected] master (deletion of the current branch prohibited)
error: failed to push some refs to git@gitlab.corp.qunar.com:fed/yobuilder.git   

 

 

 github gitlab setting 当前分支不能为要删除分支

设置后重新执行 git push origin :master  

git 删除远程master 分支

原文:http://www.cnblogs.com/yingwo/p/4522463.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!