Last Updated: February 25, 2016
·
734
· chanwit

Delete a remote GIT branch

If your remote origin repository contains a branch that you'd like to delete. You can use the push command to do so.

The following command remotely delete the branch named dev.

git push origin :dev

Please note that there is a colon in front of the branch name.

1 Response
Add your response

I found another way by add option --delete

git push origin --delete dev

over 1 year ago ·