The answers to How to modify existing, unpushed commits? describe a way to amend previous commit messages that haven\'t yet been pushed upstream. The new messages inherit t
Just do git commit --amend --reset-author --no-edit
. For older commits, you can do an interactive rebase and choose edit
for the commit whose date you want to modify.
git rebase -i
Then amend the commit with --reset-author
and --no-edit
to change the author date to the current date:
git commit --amend --reset-author --no-edit
Finally continue with your interactive rebase:
git rebase --continue