Apparently I mistyped my email a long time ago, whenever I was setting up git, and so my email has been incorrect in many repositories (I typed a 0
instead of an o
). I sign all of my commits, so in almost every commit in every repo for years it's said signed off by: <xxx0@foo.bar>
instead of signed off by: <xxxo@foo.bar>
. Now I can't just switch my email, so I would like to switch these commit messages.
I've already done the git config --global user.email "xxxo@foo.bar"
, so this shouldn't be a problem in the future.
Firstly, is it possible to change the messages on this large of a scale without royally messing things up? I've already pushed these changes to multiple servers and others have pulled those changes.
Second, is there a way I could do this quickly in a script? ie:
foreach(commit in log)
{
change "<xxx0@foo.bar>" to "<xxxo@foo.bar>"
}
All help is appreciated, and thanks!