Skip to content

Instantly share code, notes, and snippets.

@lamdor
Created April 11, 2014 20:19
Show Gist options
  • Select an option

  • Save lamdor/10498296 to your computer and use it in GitHub Desktop.

Select an option

Save lamdor/10498296 to your computer and use it in GitHub Desktop.
#!/bin/sh
git sweep cleanup
git remote prune origin
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