Skip to content

Instantly share code, notes, and snippets.

@rtfmoz2
Created October 7, 2021 21:56
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 rtfmoz2/587c0859a61936aa18133a34b62ea9fd to your computer and use it in GitHub Desktop.
Save rtfmoz2/587c0859a61936aa18133a34b62ea9fd to your computer and use it in GitHub Desktop.
not working solution
git branch --format "%(refname:short) %(upstream)"....
onboarding/envtest refs/remotes/origin/onboarding/envtest
onboarding/mods refs/remotes/origin/onboarding/mods
git branch -v for the same branches...
onboarding/envtest be1f3d01 [gone] Remove testing application
onboarding/mods 291cbc45 [gone] Staging deployment`
@rtfmoz2
Copy link
Author

rtfmoz2 commented Oct 7, 2021

Environment is OSX

@rtfmoz2
Copy link
Author

rtfmoz2 commented Oct 7, 2021

Suggest git branch -v | awk '$3 == "[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