Add git alias prunebranches

This commit is contained in:
josh committed 2026-03-19 19:16:18 -04:00
1 parent a7e00cbac7
commit cb779f4134
1 file changed
+2
+2
View File
@@ -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()
{