Skip to content

Instantly share code, notes, and snippets.

@mkdynamic
Created November 9, 2012 20:04
Show Gist options
  • Save mkdynamic/4047898 to your computer and use it in GitHub Desktop.
Save mkdynamic/4047898 to your computer and use it in GitHub Desktop.
Git aliases for removing branches
[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