How to Delete Remote Branch

I came across a situation where I wanted to delete a remote branch in Git. I can’t seem to remember, so I’m going to take a note here.

$ git push origin --delete [remote branch name]

Leave a Reply

Your email address will not be published. Required fields are marked *