|
|
@@ -27,6 +27,6 @@ git-create() {
|
|
|
}
|
|
|
|
|
|
alias git-graph="git log --graph --pretty=oneline --abbrev-commit --decorate --all"
|
|
|
-alias git-cleanup='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
|
|
|
-
|
|
|
alias git-history-graph="git log --graph --pretty='format:%C(auto)%h (%<(50,trunc)%s, %ad)%d' --abbrev-commit --decorate --all"
|
|
|
+
|
|
|
+alias git-cleanup='(git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d); (git fetch --prune 2>&1 | grep deleted | sed "s/.*-> origin\///" | xargs git branch -D)'
|