Skip to content

Instantly share code, notes, and snippets.

@trevorgreenleaf
Created February 6, 2015 17:55
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 trevorgreenleaf/87e93263ba08f24f198e to your computer and use it in GitHub Desktop.
Save trevorgreenleaf/87e93263ba08f24f198e to your computer and use it in GitHub Desktop.
GIT: Clear out all local branches that have been merged into dev
git checkout dev && git branch --merged dev | grep -v "\* dev" | grep -v "staging" | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment