commit 9dcd7487d159b01c9338b69e596d5ec1a406a461
parent b57dff54a3d56fd10beb0f9bc2fed650fc254909
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Fri, 23 Mar 2018 15:46:42 +0100
Added a git alias to remove merged branches
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/.gitconfig b/.gitconfig
@@ -5,3 +5,4 @@ name = <name>
email = EMAIL
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --decorate
+ delete-merged-branches = "!git checkout master && git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"