Add alias for git sweep

This commit is contained in:
Dan Buch 2023-02-28 14:12:55 -05:00
parent 31e7c23c8d
commit 0390fdb43d
Signed by: meatballhat
GPG Key ID: A12F782281063434

View File

@ -59,6 +59,7 @@
[alias] [alias]
hug = blame hug = blame
lograph = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' lograph = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
sweep = !git branch --merged $([[ $1 != \"-f\" ]] && git rev-parse master) | egrep -v \"(^\\*|^\\s*(master|develop)$)\" | xargs git branch -d
[commit] [commit]
template = ~/.gittemplate template = ~/.gittemplate