The interactive redirection approach is pretty good when used in conjunction with exec. You can run any shell command against a specific commit or all commits in rebase.
Set git author settings first
git config --global user.name "John Doe" git config --global user.email johndoe@example.com
Then, until reset, the author commits for everyone after the specified SHA
git rebase -i YOUR_SHA -x "git commit --amend --reset-author -CHEAD"
This will bring up your editor to confirm the changes. All you have to do is save and exit, and it will go through each commit and run the command indicated in the -x flags.
In the @Dave comment below, you can also change the author while preserving the original timestamps with:
git rebase -i YOUR_SHA -x "git commit --amend --author 'New Name <new_address@example.com>' -CHEAD"
Alex Sep 12 '14 at 19:05 2014-09-12 19:05
source share