git 删除远程master 分支

有些话、适合烂在心里 提交于 2020-02-29 05:56:00

➜  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' won't 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  
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!