瀏覽代碼

add history-graph option

Sam Jaffe 3 年之前
父節點
當前提交
7908b45ee8
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      profile-git

+ 1 - 0
profile-git

@@ -29,3 +29,4 @@ 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"