Home>Article>Development Tools> What should I do if vscode cannot recognize git?

What should I do if vscode cannot recognize git?

hzc
hzc Original
2020-06-06 10:42:07 11406browse

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:

What should I do if vscode cannot recognize git?

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

What should I do if vscode cannot recognize git?

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

What should I do if vscode cannot recognize git?

Then manually enter your git.exe installation path in the user settings on the right
Then enter the path on the right:

What should I do if vscode cannot recognize git?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn