if anyone has a oneliner for this it would be much appreciated
@SuricrasiaOnline used to have one, not sure where it went though
git filter-repo is probably the more robust solution anyway, it can take a mailmap and rewrite history with it
@SuricrasiaOnline I have corrected deadnames and removed leaked committer & author PII from git multiple times now, but do not have such a one-liner. I have a couple to do now, so it's about time to write a script. There are multiple decisions & gotchas, which become apparent if you look at the names & dates in git log --pretty=fuller and consider the implications of changing every commit hash after the first commit you edit.
I'll post my script & a write-up here when I have it.
with git-filter-repo https://github.com/newren/git-filter-repo this should work
git filter-repo --mailmap <(echo "name <email>")
the mastodon instance at cybre.space is retired
see the end-of-life plan for details: https://cybre.space/~chr/cybre-space-eol
@SuricrasiaOnline github has a bash script on their site somewhere, but they really should make it easier