Retrieving git log in YYYY-MM-DD format in local time zone

后端 未结 5 2152
北恋
北恋 2021-02-06 23:51

To get YYYY-MM-DD format for dates git log --date=iso is used. To force dates in your local time zonegit log --date=local is used.

5条回答
  •  轮回少年
    2021-02-07 00:18

    A lot of time passed since the question, but this link was one of the first in google, and it had no answer.

    So for people who find it: what you want is --date=format-local:'%F' (or %F %R for time too).

提交回复
热议问题