Skip to content
Menu
vernon.wenberg.net
vernon.wenberg.net
January 25, 2023January 25, 2023

Set git username and email address in Windows / VSCode

After installing Git for Windows, a username and email address has to be set or VSCode will give you the following error:

To add your username and email address, open up a terminal. I used Powershell in this case and type in the following commands:

cd "C:\Program Files\Git\bin"
.\git.exe config --global user.email "vernon@vwenberg"
.\git.exe config --global user.name "Vernon Wenberg"

If the email address used is also in your GitHub profile, your profile will get proper credit for your GitHub commits as well.

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to print (Opens in new window) Print
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn

Like this:

Like Loading...

Related

Disclaimer

These posts are notes for me. These are not guides and you should not use these instructions as step-by-step instructions without knowing what they do.

Recent Posts

  • Docker Reference
  • Useful Commands for Windows Subsystem for Linux
  • FortiManager Local-In Policy
  • Mount Google Drive in Linux using rclone
  • Restore original Explorer context menus in Windows 11

Mastodon

  1. Loading Mastodon feed...

©2025 vernon.wenberg.net | Powered by WordPress and Superb Themes!
%d