Changing the Git history

github logo Updated on ・1 min read

After a month of having formatted my work computer, I noticed that my mail configured in GIT was wrong. This caused my commits to not recognize me as the author and not appear on my account activity.

If this error is detected after a single commit, it can be easily solved with the following command:

git commit --amend --author="Correct Name <youremail@example.com>"

If it is detected after several commits, as happened to me, the best solution is this:

I hope you enjoyed my first post ever on dev.to!

twitter logo DISCUSS
Classic DEV Post from Nov 21 '18

What Genres Do You Listen To?

I enjoyed reading the following article by a fellow Dev.to'er: ...

Ezequiel Esnaola profile image