>>> git log
>>> git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
製作一個別名(alias)
將下列的命令複製貼上到你的終端機上
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
之後,就只需要輸入
>>> git lg
或是(當然想要看哪些行改變了)
>>> git lg -p
Reference