When I trying to delete a branch from a remote repository
git push -d origin bug-588
I get this:
error: unable to delete ‘bug-588’: remote ref does not exist
error: failed to push some refs to ‘ssh://git@gitlab-my-company.com:2222/my-team/my-
project.git’
What did I do wrong?
I published this branch with
git push -u origin bug-588
Currently I am on some other branch.
>Solution :
There is another SO question on the issues related to your error message that should apply to your scenario as well. Check it out here.
(I don’t have the reputation to mark this question a duplicate. So I hope answering like this enables somebody who can to do it for me. 🙂 )