Skip to content

Instantly share code, notes, and snippets.

@hell0again
Created January 18, 2016 07:54
Show Gist options
  • Save hell0again/3e1fc8699f317098d587 to your computer and use it in GitHub Desktop.
Save hell0again/3e1fc8699f317098d587 to your computer and use it in GitHub Desktop.
git graph
[alias]
##################
## git graph
##
## git logの短縮版。グラフとブランチ名と日付、コミッタを表示
## git logのデフォルトはこんなん
# graph = log --decorate --graph --pretty=\"format:%C(yellow)%h%C(auto)%d %Creset%s%Creset\"
## コメント+日付+author
graph = log --decorate --graph --pretty=\"format:%C(yellow)%h%C(auto)%d %C(reset)%s %C(green)%an %C(cyan)%ai%C(reset)\"
## %ad: Fri Jul 10 14:25:19 2015 +0900
## %aD: Fri, 10 Jul 2015 14:31:03 +0900
## %ar: 43 minutes ago
## %at: 1436505947
## %ai: 2015-07-10 14:25:47 +0900
## %aI: 2015-07-10T14:25:47+09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment