1
| git log --pretty="format:%H"
|
See the next tables on format variables.
Hash
Commit
Variable |
Description |
%H |
commit hash |
%h |
commit hash (7개만 표시) |
Tree
Variable |
Description |
%T |
tree hash |
%t |
tree hash (7개만 표시) |
Parent
Variable |
Description |
%P |
parent hash |
%p |
parent hash (7개만 표시) |
Commit
Variable |
Description |
%s |
commit subject |
%f |
commit subject, filename style |
%b |
commit body |
— |
— |
%d |
ref names |
%e |
encoding |
Author and committer
Author
Name
Variable |
Description |
%an |
author |
%aN |
author, respecting mailmap |
Email
Variable |
Description |
%ae |
author email |
%aE |
author email, respecting mailmap |
Date
Variable |
Description |
%aD |
author date (rfc2882) |
%ar |
author date (relative) |
%at |
author date (unix timestamp) |
%ai |
author date (iso8601) |
Committer
Name
Variable |
Description |
%cn |
committer name |
%cN |
committer name, respecting mailmap |
Email
Variable |
Description |
%ce |
committer email |
%cE |
committer email, respecting mailmap |
Date
Variable |
Description |
%cD |
committer date (rfc2882) |
%cr |
committer date (relative) |
%ct |
committer date (unix timestamp) |
%ci |
committer date (iso8601) |