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

Change The Date Format In GIT Log Command






Syntax


git log --date = <format>




FormatMeaning
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

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250