Created
November 12, 2021 21:41
-
-
Save aguilarcarlos/af67b4c5f52063a77e59e3093a5c08eb to your computer and use it in GitHub Desktop.
clean_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
clean_branches() { | |
git remote prune origin | |
git branch -vv | grep "origin/.*: 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