Home >Development Tools >VSCode >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;
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!