Last active
May 27, 2021 07:44
-
-
Save Ribeiro-Tiago/3b975fe411f4cf0d18d27d93b5eeefa4 to your computer and use it in GitHub Desktop.
prune git branches
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
// remote prune | |
git remote prune origin | |
// local prune | |
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