Skip to content

Instantly share code, notes, and snippets.

@gavinheavyside
Created June 20, 2014 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gavinheavyside/6e7781cebee7208d82f4 to your computer and use it in GitHub Desktop.
Save gavinheavyside/6e7781cebee7208d82f4 to your computer and use it in GitHub Desktop.
Clean up your leftover merged git branches
[alias]
cleanup = "!git fetch -p && git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment