Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 14
    Anything up to January 19th 3:14:07 2038 UTC should work. en.wikipedia.org/wiki/Year_2038_problem Commented Feb 16, 2011 at 20:31
  • Amending a commit only changes the committer date. Git tracks 2 dates: commit and author date. Author date will remain as the original via amend or any other git command that edits commits (eg: rebase and cherry-pick). Commented Nov 6, 2015 at 20:06
  • @Zombies wrong: git log shows GIT_AUTHOR_DATE by default, not GIT_COMMITTER_DATE. You can check with git log --pretty=fuller which shows both. Amending the commit with the --date option changes the author date. Amending it without this option changes only the commit date, since it re-creates the commit. Commented Nov 25, 2015 at 9:01
  • This only issue of this elegant solution is that it applies only on the last commit. No way to specify a older commit than the tip of the branch. Commented Nov 25, 2015 at 9:03