If you want to upload code files from vscode to github, you need to install git first and then configure git in vscode. If VsCode is not configured with Git, you may have the following problems: You already have Git installed on your computer, but you cannot find it on VsCode, prompting you to install Git
Click “Git Output” to get the following prompt
The reason is that VSCode git is stored in disk C by default, which is the path shown above
If git.exe exists on another disk, you need to configure VSCode to tell it the location of git.exe.
Click on the Settings icon in the lower left corner of VSCode, select Settings, search for gits. path, click edit in setting.json, and add git.exe to git.path.