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 Feb 3

Why do you code?

I've been coding for almost 2yrs and I still kept asking myself the same questi...

Ezequiel Esnaola profile image

Don't ghost on us ❤️

Sign Up