Skip to content

Instantly share code, notes, and snippets.

@raine
Created February 18, 2015 12:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raine/654e3289b8beb3ccf828 to your computer and use it in GitHub Desktop.
Save raine/654e3289b8beb3ccf828 to your computer and use it in GitHub Desktop.
git alias for removing merged branches
git config --global alias.remove-merged-branches '!git branch --merged | grep -v "\*" | xargs -n 1 git branch -d'
```sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment