Skip to content

Instantly share code, notes, and snippets.

@luixaviles
Created January 29, 2018 21:06
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save luixaviles/fd7488249114c2ccebd4b77c55dccc83 to your computer and use it in GitHub Desktop.
Save luixaviles/fd7488249114c2ccebd4b77c55dccc83 to your computer and use it in GitHub Desktop.
git fetch -p && for branch in `git branch -vv --no-color | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment