Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 471 Bytes

delete_local_and_remote_branch.md

File metadata and controls

17 lines (11 loc) · 471 Bytes

Delete local and remote branch

Sometimes you want a branch to go away completely

# local
$ git branch -d <branch_name>

# remote
$ git push origin --delete <branch_name>

I have created a little utility in my path with the above code. Available as a Gist.

References