How can I configure git log to show commit date instead of author date?
How can I configure git log to show commit date instead of author date
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are several options to pretty print the date. Probably the easiest is to just use one of the pre-baked
--prettyformats, likegit log --pretty=fuller– this will show both dates. If you want to see only one date, but make it the commit date, you can usegit log --format=<some stuff>. All the allowable codes for defining the format are documented ingit help log. The commit date is one of%cd,%cD,%cr,%ctor%ci, depending on what format you prefer it in.If it’s something you want to do often, put it in an alias or write an auxiliary script to save on typing.