Skip to content

Instantly share code, notes, and snippets.

@debraj-manna
Created January 11, 2023 15:43
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 debraj-manna/b48d6f51ee732b9fc86d2bd5a7e9319a to your computer and use it in GitHub Desktop.
Save debraj-manna/b48d6f51ee732b9fc86d2bd5a7e9319a to your computer and use it in GitHub Desktop.
Delete local git branches whose upstream is gone
git branch -v | grep "\[gone\]" | 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