Skip to content

Instantly share code, notes, and snippets.

@moux2003
Created April 28, 2021 07:39
Show Gist options
  • Save moux2003/5dacd0f869b488cd6e9a93b155ea502e to your computer and use it in GitHub Desktop.
Save moux2003/5dacd0f869b488cd6e9a93b155ea502e to your computer and use it in GitHub Desktop.
Script clean des branches locales disparues en remote
git fetch -p && for branch in $(git branch -vv | grep ': disparue]' | 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