DEV Community

Cover image for Changing the Git history
Ezequiel Esnaola
Ezequiel Esnaola

Posted on • Edited on

Changing the Git history

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>"
Enter fullscreen mode Exit fullscreen mode

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!

Top comments (0)