Cover image for Changing the Git history

Changing the Git history

eesnaola profile image Ezequiel Esnaola 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!


markdown guide