Skip to content

Instantly share code, notes, and snippets.

@daniDLL
Created June 19, 2019 10:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save daniDLL/2111e89523921742ab9b38a5d1bdec9c to your computer and use it in GitHub Desktop.
Save daniDLL/2111e89523921742ab9b38a5d1bdec9c to your computer and use it in GitHub Desktop.
Git clean local branches that are not on remote anymore
git branch -vv | grep -E "desaparecido|gone" | awk '{print $1}' | xargs -n1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment