[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

 

posted @ 2016-08-10 18:10  Zhentiw  阅读(183)  评论(0编辑  收藏  举报