Change the last git commit date

Tip commit has the wrong timestamp? git-edit-date fixes it in three steps — export the branch to CSV, edit the last row, apply. No git commit --amend.

Download .deb v1.5 Linux amd64 · free
curl -LO https://giteditdate.com/git-edit-date_amd64.deb
sudo dpkg -i git-edit-date_amd64.deb

Change the tip date with CSV

  1. git-edit-date export -o commits.csv
  2. Open the CSV — the last row is HEAD. Edit author_date and committer_date (RFC3339 with timezone).
  3. git-edit-date apply -file=commits.csv
  4. If already pushed: git push --force-with-lease

Unchanged rows keep their original metadata. You can also fix author_name / author_email on the tip in the same pass.

Need more than the tip?

Same tool: edit as many rows as you need. See change dates of multiple commits or the CLI tutorial.

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