Articles → Git → Change The Date Format In GIT Log Command

Change The Date Format In GIT Log Command


git log --date = <format>

RelativeShows dates relative to current time like 1 hour ago, 1 day ago etc.
LocalShows date and time in local timezone
IsoShows date and time in ISO 8601 format (yyyy-mm-dd hh:mm:ss.ffffff)
RfcShows date and time in RFC 2822 format (e.g. Fri, 1 Jan 2010 10:12:35 UTC)
shortDisplays date in YYYY-MM-DD format
RawDisplays date in internal raw git format (e.g. 1567169129 +0530)
defaultDisplays in original timezone.

Posted By  -  Karan Gupta
Posted On  -  Saturday, October 19, 2019


Your Email Id  
Query/FeedbackCharacters remaining 250