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

mac vscode cannot find git

angryTom
Release: 2019-11-08 14:33:47
Original
7069 people have browsed it

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
Copy after login

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"
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template