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 <[email protected]> AuthorDate: Tue Nov 26 01:01:01 2024 -0800 Commit: First Last <[email protected]> CommitDate: Tue Nov 26 01:01:01 2024 -0800 Example description Edit the AuthorDate: $ git commit --amend --date="Mon Nov 25 02:02:02 2024 -0800" --no-edit Edit the CommitDate to match the AuthorDate: $ git rebase --committer-date-is-author-date Confirm the dates have changed: $ git log -n 1 --pretty=fuller commit 0000000000000000000000000000000000000000 (HEAD -> main) Author: First Last <[email protected]> AuthorDate: Mon Nov 25 02:02:02 2024 -0800 Commit: First Last <[email protected]> CommitDate: Mon Nov 25 02:02:02 2024 -0800 Example description