From cb779f413415ab51b9dff98d208d8c9b31f1565d Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 19 Mar 2026 19:16:18 -0400 Subject: [PATCH] Add git alias prunebranches --- bash_aliases.d/git | 2 ++ 1 file changed, 2 insertions(+) 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() {