Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Author name in Git [duplicate]

Tags:

git

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
like image 582
Chandralekha Dhulipalla Avatar asked Sep 19 '25 20:09

Chandralekha Dhulipalla


1 Answers

git config --global user.name "John Doe"
git config --global user.email [email protected]

See git first time setup

like image 50
andy meissner Avatar answered Sep 22 '25 13:09

andy meissner