Git author date vs commit date

Every git commit has two timestamps. Confusing them is why dates “jump” after rebase even when you never meant to change when the work was done.

Author date

Set when the patch was originally authored. Shown by default in git log. This is usually what people mean by “commit date” in casual talk.

Committer date

Set when the commit object was written into the repository. git rebase, cherry-pick, and commit --amend typically refresh the committer date while leaving the author date alone (unless you override env vars).

How to see both

git log --format=fuller -3

Look for AuthorDate and CommitDate in the output.

Which one should you change?

git-edit-date exposes both as author_date and committer_date columns. Short answers also live in the FAQ; to change author date specifically see change git author date.

Download .deb v1.4 Linux amd64 · free

More: all guides · CLI tutorial · change git commit date