I want to fix the email in the 10 most recent git commits (while keeping the timestamp when they were originally committed, like git rebase does).
Alas, I cannot use --reset-author because it also resets the timestamp.
I suppose I can use git format-patch, then use sed to fix the email, and then git am to apply them.
Is there an easier way?
CodePudding user response:
Well, it turns out I just had to do something similar. It looked a bit like this:
git rebase HEAD~4 -x 'GIT_AUTHOR_DATE="$(git show --format= 