0
我想删除远程上的'主'分支。注意:我不是想删除本地主分支,而是远程上的主分支。如何删除远程的主分支?
的命令是
git push origin master --delete
我收到的错误是:
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 my:shared/pop.team/pop.TallyWorld
! [remote rejected] master (deletion of the current branch prohibited)
error: failed to push some refs to 'my:shared/pop.team/pop.TallyWorld'
我目前不是主分支。
此外,我不希望任何默认分支回购。可能吗?
请提出一个解决方案来删除远程主分支。
这是什么混帐'说status'? – Christoph
由于工作目录是干净的(没有未分离的更改); git状态不显示任何内容。 – vintrojan