Created
October 26, 2020 12:42
-
-
Save ebual/fe7894801942171018bdec7c4c0ae826 to your computer and use it in GitHub Desktop.
Gitprune
This file contains hidden or 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
| alias gitpruneorigin="git remote update origin --prune >/dev/null 2>&1" | |
| alias gitprune='gitpruneorigin && git branch -r | awk '"'"'{print $1}'"'"' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | 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