Skip to content

Instantly share code, notes, and snippets.

@RaymondKroon
Created February 4, 2020 09:32
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 RaymondKroon/12c2113cd4e076ea3ca62e8fd7d79fe6 to your computer and use it in GitHub Desktop.
Save RaymondKroon/12c2113cd4e076ea3ca62e8fd7d79fe6 to your computer and use it in GitHub Desktop.
clean local only branches
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | 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