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

后端 未结 5 2090
北恋
北恋 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条回答
  •  旧时难觅i
    2021-02-07 00:21

    This can also be configured using git-config:

    git config [--global] log.date iso-local
    

提交回复
热议问题