Helge's blog

Remove branch in remote git repo

| 0 comments

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

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

#  then also remotely
git push origin –delete branchname
[/bash]

Leave a Reply

Required fields are marked *.