Make sure your and in git vscode

While pushing the commit in Visual Studio Code if you are getting the following error:

make sure your and in git

the solution is to run the following commands to fix the issue:

git config --global "Your Display Name"
git config --global YourEmail

In the above commands replace Your Display Name and Your Email with your own values. After running the above commands the make sure your and in git issue should be fixed and you will be able to push the code.