扩展命令:组合例子(git log --pretty="%h - %s" --author=gitster --since="2008-10-01" \)
git log --stat:查看每次提交的简略统计信息
git log --pretty=oneline/short/full/fuller:以不同格式展示提交的日志
git log --pretty=format:"%h - %an, %ar : %s": 以自定义格式展示提交的日志
%H:提交对象(commit)的完整哈希字串
%h:提交对象的简短哈希字串
%T:树对象(tree)的完整哈希字串
%t:树对象的简短哈希字串
%P:父对象(parent)的完整哈希字串
%p:父对象的简短哈希字串
%an:作者(author)的名字
%ae:作者的电子邮件地址
%ad:作者修订日期(可以用 --date= 选项定制格式)
%ar:作者修订日期,按多久以前的方式显示
%cn:提交者(committer)的名字
git log --abbrev-commit:仅显示 SHA-1 的前几个字符,而非所有的 40 个字符
git log --graph:显示 ASCII 图形表示的分支合并历史
git log -p:按补丁格式显示每个更新之间的差异
git log --since=2.weeks:表示最近两周提交的日志
git log -2:表示最近两条提交日志
git log --author:仅显示指定作者相关的提交
git log --grep:仅显示含指定关键字的提交
git log -Sfunction_name:仅显示添加或移除了某个关键字的提交
git log --after:仅显示指定时间之后的提交