Created
June 30, 2020 11:33
-
-
Save tsevdos/89cb05623d4a33b68a3ff3af1b1c9234 to your computer and use it in GitHub Desktop.
Git / Github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// remove all local branches except from the ones that exist in remote | |
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -n 1 git branch -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment