Skip to content

Instantly share code, notes, and snippets.

@lexiaoyao20
Last active October 17, 2018 05:53
Show Gist options
  • Save lexiaoyao20/d00f2eac4d12dcdb566cccf322d1f1a5 to your computer and use it in GitHub Desktop.
Save lexiaoyao20/d00f2eac4d12dcdb566cccf322d1f1a5 to your computer and use it in GitHub Desktop.
Git log 格式化展示
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment