How can one change the timestamp of an old commit in Git?
Clash Royale CLAN TAG #URR8PPP How can one change the timestamp of an old commit in Git? The answers to How to modify existing, unpushed commits? describe a way to amend previous commit messages that haven't yet been pushed upstream. The new messages inherit the timestamps of the original commits. This seems logical, but is there a way to also re-set the times? Related: How to change git log date formats – kenorb Mar 14 at 11:52 17 Answers 17 Use git filter-branch with an env filter that sets GIT_AUTHOR_DATE and GIT_COMMITTER_DATE for the specific hash of the commit you're looking to fix. git filter-branch This will invalidate that and all future hashes. Example: If you wanted to change the dates of commit 119f9ecf58069b265ab22f1f97d2b648faf93...