Change dates of multiple git commits

Interactive rebase can change one commit at a time. When you need to rewrite timestamps across a whole feature branch, a spreadsheet is faster and safer to review.

Why not amend or rebase stop-by-stop?

Comparison of tools: git-edit-date vs amend, rebase, filter-branch.

Bulk workflow

  1. git-edit-date export -o commits.csv
  2. Edit author_date / committer_date on as many rows as you need
  3. git-edit-date apply -file=commits.csv
  4. git push --force-with-lease if the branch was already on the remote

Full walkthrough with examples: how to change git commit dates.

Tips

Download .deb v1.4 Linux amd64 · free

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