diff --git a/bash_aliases.d/git b/bash_aliases.d/git index 41064b4..766c350 100644 --- a/bash_aliases.d/git +++ b/bash_aliases.d/git @@ -31,6 +31,8 @@ function git-config-joshs() # Do not automatically mark my branch as tracking the remote branch that I # happened to use as the starting point. git config --global branch.autoSetupMerge false + # delete all branches that have been merged to HEAD + git config --global alias.prunebranches '!git branch --merged | grep -v '^\*' | xargs git branch -d' } function git-config-local-personal() {