git log --oneline可以让一个commit只用一行输出,这样显得特别紧凑。例如:

[root@localhost git_repo]# git log --oneline
5f08b5f Add navigation links
7f9fa70 Create blue and orange pages
7807520 Commit the first version of index.html.

也可加上文件名:仅输出某个文件的log

[root@localhost git_repo]# git log --oneline blue.html
5f08b5f Add navigation links
7f9fa70 Create blue and orange pages