I've changed my username in GitHub. I've made few commits to my Git and entered the command >git log to see my commits. In the Author section, it is still showing my previous username. How do I change/update my current username on Git? Also it should reflect in Author section after making commit.
> git log
commit commitId (HEAD -> master)
Author: **My previous username** <My email id>
Date: Sun Feb 14 16:39:26 2021 +0530
git config --global user.name "John Doe"
git config --global user.email [email protected]
See git first time setup
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