Skip to content

Instantly share code, notes, and snippets.

@tkfm-yamaguchi
Created January 31, 2014 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkfm-yamaguchi/8735963 to your computer and use it in GitHub Desktop.
Save tkfm-yamaguchi/8735963 to your computer and use it in GitHub Desktop.
history command of git
# git config --global alias.hist "log --graph --all --color --date=short --pretty='%x09%ad %Cgreen%h%Creset %cn%x09%s %Cred%d%Creset'"
# git config --global alias.hist "log --graph --all --color --date=short --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%aN>%Creset'"
git config --global alias.hist "log --graph --all --color --date=short --pretty=format:'%Cred%h%Creset %C(bold blue)|%aN| %Creset%s%C(yellow)%d%Creset'"
git config --global alias.history "log --graph --all --color --date=short --pretty=format:'%Cred%h%Creset %C(bold blue)|%aN| %Creset%s%C(yellow)%d%Creset %Cgreen(%cr)'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment