Is there any setting option enable me to change the datetime format? for example, when viewing commits history list, I would prefer reading “2020-12-20” rather than “20 Dec 2020”.
This was a fun query to look into! You can do this with the following command:
git log --date=short
Shows only date but not time, in YYYY-MM-DD format.
git log --date=iso
Shows timestamps in ISO 8601 format
The output will look something like
Date: 2020-10-13 11:48:41 -0700
thx, but this method only works in local cloned repo.
Although hovering the commit’s datetime will show the full datetime info, it’s not convenient enough to accept time sequence when fast reading long commit history list.
YYYY-MM-DDformat might better than
20 Dec 2020.
Thanks for this feedback!
We’re always working to improve GitHub and the GitHub Support Community, and we consider every suggestion we receive.
You can do so by submitting this through our official product feedback form so that our product team can track your request.