Although vscode has git function, you still need to install a git main program to run it. In addition, it is recommended to install TortoiseGit to cooperate with it. Most of the usual operations (submit, push, etc.) can be completed with vscode. Occasionally, you can use TortoiseGit to perform more complex operations. By the way, after installing git, the terminal of vscode can be designated as the bash that comes with git, so that some command line operations of git can be directly opened in the terminal window of vscode.
git is not installed...
or the git command is not configured properly
Although vscode has git function, you still need to install a git main program to run it. In addition, it is recommended to install TortoiseGit to cooperate with it. Most of the usual operations (submit, push, etc.) can be completed with vscode. Occasionally, you can use TortoiseGit to perform more complex operations.
By the way, after installing git, the terminal of vscode can be designated as the bash that comes with git, so that some command line operations of git can be directly opened in the terminal window of vscode.