Add alias for git sweep
This commit is contained in:
parent
31e7c23c8d
commit
0390fdb43d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user