diff --git a/home/gitconfig b/home/gitconfig index b6be7b3..c53eec9 100644 --- a/home/gitconfig +++ b/home/gitconfig @@ -89,3 +89,6 @@ update-submodules = submodule update --init --recursive upgrade-submodules = submodule update --init --remote + + # Delete all local branches that have been removed from the remote. + gone = !git fetch --prune && git branch -vv | awk '/: gone]/ {print $1}' | xargs -r git branch -D