From 4691ab19ccd10a7de7b616ad6dafbf0f20fc41b7 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 26 Oct 2017 10:46:06 +0100 Subject: [PATCH] Add git cleanup command --- modules/shell/files/applications.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/shell/files/applications.sh b/modules/shell/files/applications.sh index d92f109..6b082aa 100644 --- a/modules/shell/files/applications.sh +++ b/modules/shell/files/applications.sh @@ -19,6 +19,11 @@ gh() { fi } +git-cleanup() { + command git checkout master && git branch --merged | grep -v '*' | xargs -n 1 git branch -d + command git gc --aggressive +} + alias t="tig" alias ts="tig status"