Created
April 17, 2012 16:13
-
-
Save pgib/2407232 to your computer and use it in GitHub Desktop.
Delete multiple local/remote git branches. (Put this in your shell's profile and smoke it!)
This file contains 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
delete-branch() | |
{ | |
for i in `echo $*`; do | |
echo "Deleting local and remote branch $i..." | |
git push origin :$i | |
git branch -D $i | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment