I started a new directory which had code in it. I tried to commit and it told me to install Git. I installed Git.
I tried to commit and I got the following answer in the output window:
Please tell me who you are.
Run
git config --global user.email "you@example.com" git config --global user.name "Your Name"to set your account's default identity.
Omit--globalto set the identity only in this repository.
I opened a Git terminal and wrote the command. Then I typed git config --list and saw the parameters that I entered. But the commit in Visual Studio Code gave me the same answer.