Created
March 9, 2018 16:42
-
-
Save aprabaldi/2283ab942863a80a27325fd7779bb8da to your computer and use it in GitHub Desktop.
Remove local git merged branches except from master
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 git.clean.merged.branches="git branch --merged | grep -v "master" >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -d </tmp/merged-branches" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment