Created
December 28, 2017 20:37
-
-
Save ksindi/a46a1e3b1ab49dcb4dd33dedafccab45 to your computer and use it in GitHub Desktop.
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] | |
delete-merged-branches = "!f() { git checkout --quiet master && git branch --merged | grep --invert-match '\\*' | xargs -n 1 git branch --delete; git checkout --quiet @{-1}; }; f" # http://stackoverflow.com/a/6127884/2624466 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment