Skip to content

Instantly share code, notes, and snippets.

@KraigWalker
Created July 14, 2014 06:56
Show Gist options
  • Save KraigWalker/87e9063c5f058957fb11 to your computer and use it in GitHub Desktop.
Save KraigWalker/87e9063c5f058957fb11 to your computer and use it in GitHub Desktop.
git-nuke
#!/bin/sh
#
# Nukes a branch locally and on the origin remote.
#
# $1 - Branch name.
#
# Examples
#
# git nuke add-git-nuke
git branch -D $1
git push origin :$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment