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?
git commit --amendonly touches the tip commitgit rebase -iwith exec/env filters is easy to get wrong mid-listfilter-branchis deprecated and awkward for date-only edits
Comparison of tools: git-edit-date vs amend, rebase, filter-branch.
Bulk workflow
git-edit-date export -o commits.csv- Edit
author_date/committer_dateon as many rows as you need git-edit-date apply -file=commits.csvgit push --force-with-leaseif the branch was already on the remote
Full walkthrough with examples: how to change git commit dates.
Tips
- Leave unchanged rows alone — only edited metadata is applied
- Keep RFC3339 timestamps with timezone offsets
- Do not edit the
hashcolumn
↓ Download .deb v1.4
Linux amd64 · free
More: all guides · CLI tutorial · change git commit date