Erdal TAŞKESEN Erdal TAŞKESEN

How to change a commit timestamp

20 September 2018

You may need to change the DateTime of a commit in some situations. For example, some countries use daylight saving time period and because of it, some of the commits can have the wrong timestamp.

git commit --amend --date "Thu Feb 15 22:37:31 2018 +0300"

You should commit the real one first, then you can change the timestamp later.

Tags: git