git log

http://git-scm.com/book/zh/v2

https://backlogtool.com/git-guide/tw/contents/

http://gitbook.liuhui998.com/3_4.html

git log

git log -p

git log -n (n是一个数字,例如:git log -2)显示最近的n次提交log

git log -p -n

git log --stat

git log —shortstat

git log —name-only

git log —name-status

git log --pretty=oneline

git log --pretty=short

git log --graph

git log --pretty=format:’%h was %an, %ar, message: %s'

选项 说明

%H 提交对象(commit)的完整哈希字串

%h 提交对象的简短哈希字串

%T 树对象(tree)的完整哈希字串

%t 树对象的简短哈希字串

%P 父对象(parent)的完整哈希字串

%p 父对象的简短哈希字串

%an 作者(author)的名字

%ae 作者的电子邮件地址

%ad 作者修订日期(可以用 -date= 选项定制格式)

%ar 作者修订日期,按多久以前的方式显示

%cn 提交者(committer)的名字

%ce 提交者的电子邮件地址

%cd 提交日期

%cr 提交日期,按多久以前的方式显示

%s 提交说明
 

原文地址:https://www.cnblogs.com/icenter/p/5267691.html