我的github仓库,有master,main两个分支,我想删除远程的main分支
git push origin --delete main
报错
To https://github.com/accountname/repo.git
! [remote rejected] main (refusing to delete the current branch: refs/heads/main)
error: failed to push some refs to 'https://github.com/accountname/repo.git'
请问,如何解决?