Update email address of a series of commits

Hi there, hope you can guys help me with something...
I completely reinstalled everything on my machine and got a new fresh setup. This includes git configuration, so when I resumed work on an old project I had to enter my user and email address for all my commits, as expected. Unfortunately I got the email address wrong and now my commits won't appear on the GitHub counter which is a bit of a bummer.

Is there a way to overwrite all commits to use a different email address? Git is still one of those things that I only know at the surface level, and I'm still green when it comes to this type of stuff.

If it makes a difference, I'm the only one working on this as it's a personal side project so I'm okay with any "drastic" solutions... so long they don't involve erasing the whole commit history 😄

Thanks!
Was this page helpful?