27
7
I'm trying to remove a remote branch with git:
rpinson@rpinson:~/dev/charismanie$ git remote show origin
* remote origin
Fetch URL: git@github.com:raphink/Charismanie.git
Push URL: git@github.com:raphink/Charismanie.git
HEAD branch: xetex
Remote branches:
master tracked
xetex tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)
rpinson@rpinson:~/dev/charismanie$ git push origin :xetex
remote: error: refusing to delete the current branch: refs/heads/xetex
To git@github.com:raphink/Charismanie.git
! [remote rejected] xetex (deletion of the current branch prohibited)
error: failed to push some refs to 'git@github.com:raphink/Charismanie.git'
Is there a way I can remove this branch from the list of "Remote branches" so I can remove it?
http://support.github.com/discussions/repos/3267-why-cant-i-delete-my-master-branch could help, perhaps? – VonC – 2011-06-08T08:44:17.547
I've tried that, it doesn't help. – ℝaphink – 2011-06-08T08:58:28.663
Possible cross site duplicate of: http://stackoverflow.com/questions/3301956/git-correct-way-to-change-active-branch-in-a-bare-repository
– Ciro Santilli 新疆改造中心法轮功六四事件 – 2014-02-02T21:00:01.430