Skip to content

Instantly share code, notes, and snippets.

@halcarleton
Created April 22, 2019 15:21
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 halcarleton/52cad29dfbe0fc308de245f46ac66ccd to your computer and use it in GitHub Desktop.
Save halcarleton/52cad29dfbe0fc308de245f46ac66ccd to your computer and use it in GitHub Desktop.
git remote prune origin
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment