From e01828f657f0546f0208d0dd031e8cfb2644c1f7 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Tue, 29 Jun 2021 16:45:08 +0200 Subject: [PATCH] git alias: untrack to remove local branches --- dot_gitconfig.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index e78e593..3ae4dfc 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -19,6 +19,7 @@ p = push -u origin s = status track = "!for BRANCH in $(git branch -a | grep remotes | grep -v HEAD | grep -v master); do git branch --track \"${BRANCH#remotes/origin/}\" \"${BRANCH}\"; done" + untrack = "!for BRANCH in $(git branch | grep -v '*'); do git branch -D \"${BRANCH}\"; done" work-in-progress = rebase -i @{u} [include] path = ~/.gitconfig_custom.inc