In VS Code go to file -> Preferences -> Setting Then search for Git: Require Git User Config. Uncheck this option and restart VS Code. This worked for me.