DEV Community

Cover image for Changing the Git history

Changing the Git history

Ezequiel Esnaola
I like to create things
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 <>"
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!

Discussion (0)