Refusing to delete the current branch: refs/heads/master

I would like to delete the branch masterat git@github.com:vveckaln/DelphesNtuplizer.git

git push origin --delete master
Enter passphrase for key '/***/.ssh/id_rsa': 
To github.com:vveckaln/DelphesNtuplizer.git
 ! [remote rejected] master (refusing to delete the current branch: refs/heads/master)
error: failed to push some refs to 'git@github.com:vveckaln/DelphesNtuplizer.git'

What is wrong and what to do?

The problem was that master was the default branch at github

1 Like