Skip to content

Instantly share code, notes, and snippets.

@tedkulp
Created April 17, 2015 19:01
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 tedkulp/5fc8563f906d501caa32 to your computer and use it in GitHub Desktop.
Save tedkulp/5fc8563f906d501caa32 to your computer and use it in GitHub Desktop.
Cleanup removed/merged remote branches and the local branches that tracked them
alias grcl='git checkout master && git pull && git remote prune origin && git branch -avv | grep "gone]" | awk '\''{ print $1 }'\'' | xargs git branch -d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment