Created
September 29, 2019 02:46
-
-
Save msng/cb58fcdcc935e3d9d7add445301c3187 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 = !git branch --merged master | grep -v -e \\* -e master -e develop | xargs git branch -d | |
delete-merged-remote-branches = !git fetch --all --prune && git branch -r --merged master | grep -v -e master -e develop | sed -e 's%/% %' | xargs -n 2 git push --delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment