Sunday 15 January 2012

git - how to rename a master branch when using gitolite -



git - how to rename a master branch when using gitolite -

i'm using gitolite git access right management.

i want rename master branch production.

i have rw+ permision on repo in gitolite

i rename branch localy :

git branch -m master production

and want delte remote master branch, get:

remote: error: default, deleting current branch denied, because next remote: error: 'git clone' won't result in file checked out, causing confusion. remote: error: remote: error: can set 'receive.denydeletecurrent' configuration variable remote: error: 'warn' or 'ignore' in remote repository allow deleting remote: error: current branch, or without warning message. remote: error: remote: error: squelch message, can set 'refuse'. remote: error: refusing delete current branch: refs/heads/master gitolite@virgo:/puppeteer ! [remote rejected] master (deletion of current branch prohibited)

how can remove master branch on remote?

the question why delete master branch. much easier create new branch , force new branch remote server.

git checkout master git branch production git checkout production git force origin production

then have new remote branch.

git gitolite

No comments:

Post a Comment