
Amend the last commit (HEAD) and set the committer date as the author date – as “–committer-date-is-author-date” may have done (a git-rebase option):
GIT_COMMITTER_DATE="$(git show -s --format=%at HEAD)" git commit \
--amend -C HEAD
Git Author Date is Committer Date (Amend)
And for setting the author date to the committer date while keeping the committer date:
GIT_COMMITTER_DATE="$(git show -s --format=%ct HEAD)" git commit \
--amend -C HEAD --date="$(git show -s --format=%ct HEAD)"
Previously:
