Add git alias prunebranches

This commit is contained in:
Josh Holtrop 2026-03-19 19:16:18 -04:00
parent a7e00cbac7
commit cb779f4134

View File

@ -31,6 +31,8 @@ function git-config-joshs()
# Do not automatically mark my branch as tracking the remote branch that I # Do not automatically mark my branch as tracking the remote branch that I
# happened to use as the starting point. # happened to use as the starting point.
git config --global branch.autoSetupMerge false 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() function git-config-local-personal()
{ {