git: Add command to clean merged branches
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
|
||||
pushall = "!sh -c 'for r in $(git remote) ; do [[ "$r" != "upstream" ]] && { echo \"--- [$r] ---\" ; git push $r \"$@\" ; } ; done' -"
|
||||
|
||||
branch-clean = "!sh -c 'git branch --merged | grep -v master | xargs --no-run-if-empty git branch -d'"
|
||||
|
||||
graph = log --graph --pretty=format:'%C(yellow)%h%Creset%C(bold red)% D%Creset %C(green)(%cr) %C(blue)%an<%ae>%Creset%n %C(bold white)%s%Creset' --all
|
||||
|
||||
intercommit = !bash -c 'interdiff <(git show $1) <(git show $2) | less -FRS' -
|
||||
|
||||
Reference in New Issue
Block a user