skip to Main Content

How to Configure Git Username and Email Address

git config --global user.name "<your name>"git config --global user.email "<youremail@somewhere.com>"

Related Commands

Show current git configuration:

git config --list 

Additional Information

If you get this error in Visual Studio Code when trying to commit without first setting git username/email, then run the above commands to fix: “Make sure you configure your ‘user.name’ and ‘user.email’ in git.”

Chinh Do

I occasionally blog about programming (.NET, Node.js, Java, PowerShell, React, Angular, JavaScript, etc), gadgets, etc. Follow me on Twitter for tips on those same topics. You can also find me on GitHub.

See About for more info.

This Post Has 0 Comments

Leave a Reply

Your email address will not be published.

Back To Top