我执行 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:
1
shell92 OP 我没找到在哪里配置 receive.denyDeleteCurrent 这个属性。。。。。
|
2
bingwenshi 2015-10-11 18:00:02 +08:00
这个应该是 server 上设置的
远端的 master 分支不能删,删了 clone 的时候就没有默认分支了 |