Skip to content

Instantly share code, notes, and snippets.

@marek-pietrzak-tg
Created August 4, 2022 09:39
Show Gist options
  • Select an option

  • Save marek-pietrzak-tg/cac3641ab997e4f3f7a71bce222ae46a to your computer and use it in GitHub Desktop.

Select an option

Save marek-pietrzak-tg/cac3641ab997e4f3f7a71bce222ae46a to your computer and use it in GitHub Desktop.
Remove merged git branches locally
git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment