Skip to content

Instantly share code, notes, and snippets.

@Sigafoos
Created February 29, 2024 13:53
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 Sigafoos/cb97416c087ad5dbbfa38b44629e87dc to your computer and use it in GitHub Desktop.
Save Sigafoos/cb97416c087ad5dbbfa38b44629e87dc to your computer and use it in GitHub Desktop.
git-purge
#!/bin/bash
git fetch -p && 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