You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to change your last git commit's CommitDate and AuthorDate
Show the last git commit and confirm it's the one you want to edit:
$ git log -n 1 --pretty=fuller
commit 0000000000000000000000000000000000000000 (HEAD -> main)
Author: First Last <FirstLast@example.com>
AuthorDate: Tue Nov 26 01:01:01 2024 -0800
Commit: First Last <FirstLast@example.com>
CommitDate: Tue Nov 26 01:01:01 2024 -0800
Example description
$ git log -n 1 --pretty=fuller
commit 0000000000000000000000000000000000000000 (HEAD -> main)
Author: First Last <FirstLast@example.com>
AuthorDate: Mon Nov 25 02:02:02 2024 -0800
Commit: First Last <FirstLast@example.com>
CommitDate: Mon Nov 25 02:02:02 2024 -0800
Example description