How can I ignore committing timezone information in my commit?

前端 未结 3 1624
攒了一身酷
攒了一身酷 2020-12-29 06:19

Recently, I forked a repository hosted by github, with contributors spreading all over the world, and found out that the each commit log contains committer\'s timezone infor

3条回答
  •  一向
    一向 (楼主)
    2020-12-29 07:03

    Why are committer's timezone needed for commits? What is it used for? Isn't UTC time enough?

    The timezone is useful to figure out the local time of the author/committer doing the operation.

    According to https://git-scm.com/docs/git-commit-tree#_date_formats:

    Git internal format
    
    It is  

提交回复
热议问题