Home >Development Tools >VSCode >mac vscode cannot find git

mac vscode cannot find git

angryTom
angryTomOriginal
2019-11-08 14:33:477088browse

mac vscode cannot find git

mac vscode cannot find git

Solution:

1. First open the terminal and use whereis git to find the installation path of git;

whereis git

2. Then open vscode and click - File - Preferences - Settings. The English version is: file->preferences- >settings->Enter git.path->Click "edit in settings.json"

3. Then search for git.path;

mac vscode cannot find git

4. Finally, fill in the queried git installation path in the opened json.

Add the following code in the json file: (the following is your git.exe path)

"git.path":"/path/git"

5. Restart vscode, successful.

Related recommendations: "vscode usage tutorial"

The above is the detailed content of mac vscode cannot find 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
Previous article:Is vscode free?Next article:Is vscode free?