Skip to content

Instantly share code, notes, and snippets.

@rap1ds
Created April 28, 2014 05:58
Show Gist options
  • Save rap1ds/11362762 to your computer and use it in GitHub Desktop.
Save rap1ds/11362762 to your computer and use it in GitHub Desktop.
Clean branches merged to the current branch
[alias]
clean-branches = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment