From cd56234c227ef0a3940fced2627819d39335b6a6 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 20 Oct 2021 20:09:46 +0200 Subject: [PATCH] git: delete aliase --- .gitconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitconfig b/.gitconfig index ffbd664..0b8bb64 100644 --- a/.gitconfig +++ b/.gitconfig @@ -13,6 +13,16 @@ remote = remote -v stagep = stage -p last = log -1 HEAD --stat + + # Delete all local branches but master and the current one, only if they are fully merged with master. + dbra = "!f(){\ + git branch | grep -v "master" | grep -v ^* | xargs git branch -d;\ + }; f" + # Delete all local branches but master and the current one. + dbraf = "!f(){\ + git branch | grep -v "master" | grep -v ^* | xargs git branch -D;\ + }; f" + [core] editor = vim [help]