How to change git author date
Author date is the timestamp attached to the person who wrote the change. If it is wrong — wrong timezone, drifted clock, or commits under the wrong identity — you can fix it across a branch with git-edit-date.
Author date vs committer date
Git stores two timestamps. Author date is when the work was written. Committer date is when the commit object was created (rebase, cherry-pick, and amend often update only the committer date). See author date vs commit date for the full difference.
Change author date with CSV
- Export:
git-edit-date export -o commits.csv - Edit
author_date(RFC3339 with timezone). Optionally fixauthor_nameandauthor_emailin the same rows. - Apply:
git-edit-date apply -file=commits.csv - If already pushed:
git push --force-with-lease
Step-by-step screenshots of the flow: tutorial — edit the CSV.
When amend is enough
To change author date on the latest commit only, you can use
GIT_AUTHOR_DATE=… git commit --amend --no-edit.
For older commits or many rows, use the CSV workflow —
see change last commit date.
More: all guides · CLI tutorial · change git commit date