git filter-branch --env-filter \'
export GIT_AUTHOR_EMAIL=\"foo@example.com\"
export GIT_AUTHOR_NAME=\"foo\"\' -- commita..commitb
Results in
The solution from @Acron seems wrong to me. I would suggest following to change between refa and refb including both hashes:
git tag master.bakgit reset --hard refagit filter-branch --env-filter '
export GIT_AUTHOR_EMAIL="foo@example.com"' refa^..mastergit cherry-pick refb..master.bakgit tag -d master.bak