Ah gosh that one commit has the author date just too far off, but if it
would be the same as the committer date, that would be fine…
- Locate the commit when rebase interactively and mark for edit. Then
go there to edit [1]. - Extract and export that commits committer date as GIT_COMMITTER_DATE
$ export GIT_COMMITTER_DATE="$(git log --format=%cD -1)"
- Amend w/ the author date then set to the committer date while preserving it via the exported environment parameter (variable)
$ git commit --amend --date="$GIT_COMMITTER_DATE" -C HEAD
- Unset the GIT_COMMITTER_DATE
$ unset GIT_COMMITTER_DATE
- Continue the rebase to finish
$ git rebase --continue
[1] A date/time related intro to interactive rebase is also given in Change the date of a git commit (by Hugo Di Francesco; Aug 2018), the whole story in the git manual on interactive rebase which is always worth the read.
Images motive based on a visual excerpt from a TV series episode named “git gone” which is also the imaginary product name, the further text reads “kills bugs on contact” on the spray can label.