Skip to content
Home » git change username email

git change username email

Let’s start the discussion about git change username email in following methods.

Using the git config command, you can alter the name associated with your Git commits. The new name you specify will appear in any future commits you push to GitHub from the command line. You can choose any text as your Git username if you want to keep your real identity hidden.

Using git config to alter the name associated with your Git commits will only affect future commits and will not change the name used for previous commits.

Modify and run the below commands to change username and password.

#change username
git config --global user.name "John Doe"


# change email address
git config --global user.email "abc123@gmail.com"

I hope the strategies listed above work for you. Happy coding and come back again.

Similar Post : pip install crispy forms