I am trying to delete my remote branches. I have three of this kind
remotes/origin/test
But none of them can be deleted. I've searched for common solutions and I have found this suggestions:
git push origin :test
and
git push origin test --delete
By trying these out, I get this error:
$ git push origin test --delete
>> Receiving push
ERROR: error: Trying to write ref refs/heads/test with nonexistant object 0000000000000000000000000000000000000000
fatal: Cannot update the ref 'refs/heads/test'.
To ssh:Repository
! [remote rejected] test (pre-receive hook declined)
error: failed to push some refs to 'Repository'
I hope someone knows how to solve this problem. Thank you! :)