I had this problem after upgrading to macOS CatalinamacOS v10.15 (Catalina).
The issue is resolved as follows:
1. Find git
Find the Git location from the terminal:
which git 2. Add
Add the location of gitGit in settings file with your location:
settings.jsonsettings.json
"git.path": "/usr/local/bin/git", Depending on your platform, the user settings file (settings.json) is located here:
Windows
%APPDATA%\Code\User\settings.jsonmacOS
$HOME/Library/Application Support/Code/User/settings.jsonLinux
$HOME/.config/Code/User/settings.json