See MichaelCurrin/rewrite-git-author repo which replaces an old email with a new email.