I am trying to set up git on my laptop so I can push commits to GitHub. This now works, but if I do so and then visit GitHub, it appears as if some random user (always cbeaudoin898 - I have no idea who this is) made all the commits. It is super weird, I have no idea what is causing this. When I push the commit, I log in with my own username & password. I also have this set in my git config. Here is an example repo: https://github.com/kmb5/etch-a-sketch
My git config:
Screenshot of how a commit appears on GitHub:

Here is the commit log:

Does anyone have any idea why this is happening? I am getting crazy, setting up GitHub was a pain as is, because I tried to set it up for 2 different GitHub accounts (work and private) - which was a hassle on its own.
For anyone facing this issue please first check if you have a typo or wrong or a different email address configured in your local git (step 1 below). If so, then this might solve the issue as it did for my repo once upon a time.
git config --global user.name
git config --global user.email
git config --global user.name "Your Correct Name Here"
git config --global user.email "Your Correct Email Here"
git commit --amend --reset-author
git push -f
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With