Created
October 18, 2019 12:36
-
-
Save tomcant/c834a5431082b3407dcf418499a3cb4c to your computer and use it in GitHub Desktop.
Put this in ~/.gitconfig to create the "dmerged" Git alias. This deletes local branches that have been merged.
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] | |
dmerged = "!git branch --merged | grep -v '\\*\\|master' | xargs -n 1 git branch -d" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment