Created
May 27, 2019 18:47
-
-
Save mabroor/29014aca5ea87ca16d30e8f2165e54ad to your computer and use it in GitHub Desktop.
Git prune squashed and merged 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
alias gprunemerged='git checkout master && comm -12 <(git branch | sed "s/ *//g") <(git remote prune origin | sed "s/^.*origin\///g") | xargs -L1 -J % git branch -D %' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment