Not able to push to git from VSCode?

Akshay Mattoo
Nov 6, 2022
git push error
Photo by Yancy Min on Unsplash

Vscode is the developer's choice these days to write code. With so many extensions and a very clean UI, it is obvious why we like it so much. Lately, I was on my new machine, and my git push was failing. i had forgotten couple of things we need to do in order to get git working. Set you username and email in the global config with below commands.

` git config — global user.name “<name>”`

` git config — global user.email “<email>”`

Once done when you try to git push it take you to login screen on the browser and authenticates the account for further pushes. Happy coding.

--

--

Akshay Mattoo

#Father #JS-Advocate #SoftwareEngineer #fitnessbeliever #intermediatetennisplayer #lifebetweenthebraces{}