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.