Home>Article>Development Tools> What should I do if vscode cannot recognize git?
Solution to the problem that vscode cannot recognize git:
In win10 system
After installing Visual studio code, Git
is installed but the output of running VS Code gives the following prompt:
Solution
First, rule out whether Git installation was unsuccessful.
Open CMD and enter the command: git
If it appears normally, the following prompt indicates that there is no problem with your Git installation
Then the solution You only need to do the following, if not, the solution will be introduced later:
Open the vs code file – Preferences – Settings – Search for git.path in the input box
Then manually enter your git.exe installation path in the user settings on the right
Then enter the path on the right:
Note here: in the directory The slash must be changed to Linux-style "/" instead of "" in the windows directory, otherwise an error will be reported
Change Ctrl s to save, and then restart vs code to solve the problem
Recommended tutorial: "VSCode Tutorial"
The above is the detailed content of What should I do if vscode cannot recognize git?. For more information, please follow other related articles on the PHP Chinese website!