Skip to content

Instantly share code, notes, and snippets.

@pmbauer
Last active May 11, 2018 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmbauer/21424659d4a10abb6adaf24cceffe7e4 to your computer and use it in GitHub Desktop.
Save pmbauer/21424659d4a10abb6adaf24cceffe7e4 to your computer and use it in GitHub Desktop.
.gitconfig snippet, delete merged branches, restore tab-completion sanity
#...
[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