git查看commit的命令是
git log
輸入之后的效果如下:

git config --global alias.gl "log --graph --all --relative-date --date=short --abbrev-commit --format=\"%x09 %h %Cgreen%cd%Creset [%Cblue%cn%Creset] %C(auto)%d%Creset %s\""
輸入下面的代碼,查看修改后的效果.
git gl

原鏈接? ? ?http://newstrong.github.io/2017/04/07/git-color-log/