Just created a new github account, and noticed that i am unable to delete the main branch using this command:
git push origin :main
This returns the error:
! [remote rejected] main (refusing to delete the current branch: refs/heads/main)
error: failed to push some refs to 'github.com:accountname/reponame.git'
Any idea why i cant delete this branch? It hints at not being able to delete the "current" branch, but i am on another branch ..