Last active
May 11, 2018 18:23
-
-
Save pmbauer/21424659d4a10abb6adaf24cceffe7e4 to your computer and use it in GitHub Desktop.
.gitconfig snippet, delete merged branches, restore tab-completion sanity
This file contains hidden or 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 gcmerged [master] | |
gcmerged = "!gcmerged() { trunk=${1:-master}; git branch -D $(git branch --merged ${trunk} | grep -v ${trunk}); git fetch --prune origin; }; gcmerged" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment