【发布时间】:2014-12-07 20:03:28
【问题描述】:
我正在使用 gitolite 进行 git 访问权限管理。
我想将主分支重命名为生产。
我对 gitolite 中的那个 repo 有 RW+ 权限
我在本地重命名分支:
git 分支 -m 主生产
然后我想删除远程主分支,但我得到:
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 gitolite@virgo:/puppeteer
! [remote rejected] master (deletion of the current branch prohibited)
如何在远程也删除主分支?
【问题讨论】: