From 6396950ab167e12e1e6721e54d8ced8c99f89418 Mon Sep 17 00:00:00 2001 From: GeorgeSG Date: Tue, 4 Aug 2026 11:55:12 +0300 Subject: [PATCH] Add git gone alias --- home/gitconfig | 3 +++ 1 file changed, 3 insertions(+) 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