Helge's blog

Remove branch in remote git repo


If you have a remote git repo, and you want to delete a branch there, you can do:

# if you want to delete the branch locally first, do:
git branch -D branchname

#  then also remotely
git push origin –delete branchname

Leave a Reply

Required fields are marked *.