til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

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