git filter-repo --email-callback ' return b"new_email_address" if email == b"old_email_address" else email '
If git-filter-repo
is not installed, you have to install it. git-filter-repo
is a program:
- Developed by Elijah Newren, who is a veteran contributor to Git.
- Endorsed by Git as the replacement for the
git-filter-branch
program, which had numerous issues.
For reasons that I don't know, it has to be installed separately, instead of being included in a Git distribution. At least this is the case in the version of Git that I'm using.