Created
November 9, 2012 20:04
-
-
Save mkdynamic/4047898 to your computer and use it in GitHub Desktop.
Git aliases for removing branches
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
[alias] | |
begone = "!begone() { git branch -d $1 && git push origin :$1 && git remote prune origin; }; begone" | |
nix = "!nix() { git branch -D $1 && git push origin :$1; git remote prune origin; }; nix" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment