我正在使用gitolite进行git访问权限管理。
我想将主分支(master)重命名为生产(production)。
我在gitolite中对该仓库具有RW+权限。
我使用以下命令在本地重命名分支:
git branch -m master production
然后,我想删除远程主分支,但是出现了以下错误:
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)
我该如何在远程仓库上删除主分支(master branch)呢?