Created
July 14, 2014 06:56
-
-
Save KraigWalker/87e9063c5f058957fb11 to your computer and use it in GitHub Desktop.
git-nuke
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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