I'm using gitolite for git access right management.
I want to rename the master branch to production.
I have RW+ permision on that repo in gitolite
I rename the branch localy with :
git branch -m master production
and then I want to delte the remote master branch, but I get:
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)
How can I remove the master branch also on remote?