Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Can't delete a remote branch

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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. 🙂 )

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading