Articles → Git → Change The Date Format In GIT Log Command
Change The Date Format In GIT Log Command
Syntax
git log --date = <format>
Format | Meaning |
---|
Relative | Shows dates relative to current time like 1 hour ago, 1 day ago etc. |
Local | Shows date and time in local timezone |
Iso | Shows date and time in ISO 8601 format (yyyy-mm-dd hh:mm:ss.ffffff) |
Rfc | Shows date and time in RFC 2822 format (e.g. Fri, 1 Jan 2010 10:12:35 UTC) |
short | Displays date in YYYY-MM-DD format |
Raw | Displays date in internal raw git format (e.g. 1567169129 +0530) |
default | Displays in original timezone. |