git log format
27 Jan 2015Command
git log --pretty=format:"%h - %an, %ar : %s"
Output
362067d - liuxh, 4 months ago : Support tablet.
f638c17 - Linux Build Service Account, 4 months ago : Merge "StatusBar: Customize LTE signal level for carriers"
b197b6f - Qiang Chen, 4 months ago : StatusBar: Customize LTE signal level for carriers
1d8cdce - Linux Build Service Account, 4 months ago : Merge "Merge 40a42eb392175ace0ef63429db528d149d33d46a on remote branch"
d5697f2 - Linux Build Service Account, 4 months ago : Merge 40a42eb392175ace0ef63429db528d149d33d46a on remote branch
c51d132 - Linux Build Service Account, 4 months ago : Merge "Merge 7d0716d2faad9a376dc55b332707c57997d198f2 on remote branch"
Comment
选项 | 说明 |
---|---|
%H | 提交对象(commit)的完整哈希字串 |
%h | 提交对象的简短哈希字串 |
%T | 树对象(tree)的完整哈希字串 |
%t | 树对象的简短哈希字串 |
%P | 父对象(parent)的完整哈希字串 |
%p | 父对象的简短哈希字串 |
%an | 作者(author)的名字 |
%ae | 作者的电子邮件地址 |
%ad | 作者修订日期(可以用 -date= 选项定制格式) |
%ar | 作者修订日期,按多久以前的方式显示 |
%cn | 提交者(committer)的名字 |
%ce | 提交者的电子邮件地址 |
%cd | 提交日期 |
%cr | 提交日期,按多久以前的方式显示 |
%s | 提交说明 |