90sygg
Last Updated: February 25, 2016
·
621
· chanwit

Delete a remote GIT branch

git

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

11599

I found another way by add option --delete

git push origin --delete dev

over 1 year ago ·