[Practical Git] Format commit history with git log arguments

When running the git log command, we can pass in options as arguments toformat the data shown for each commit. In this lesson, we show how to use the onelinedecorategraphstat, and p options with git log.

Show it oneline:

git log --oneline
git log --decorate

Display the graph for each commit

git log --graph

Show the changes for each commit:

git log -p

Show number of isertions and deletion:

git log --stat

原文地址:https://www.cnblogs.com/Answer1215/p/5757845.html