Home > Article > Development Tools > A brief analysis of how to manually configure Git in VSCode (graphic tutorial)
What should I do if VSCode cannot find git and report an error when pulling the code? The following article will introduce you to the solution and talk about the method of manually configuring Git in VSCode. I hope it will be helpful to you!
The computer has installed git, but when pulling the code on VSCode, git cannot be found, and it prompts to install git
Git installation not found
VSCode The default address will be automatically queried. If it cannot be found, you need to manually configure the installed Git. [Recommended learning: "vscode introductory tutorial"]
1. settings
Select the settings button in the lower left corner, Select settings
## 2. git.path
Directly search for git.path## in the input box #git.path
Click Edit in settings.json and enter the installation path of Git on your computer
##3. Add the pathEnter the git.exe path of git.path in the json file as shown
{ "git.path": "D:/01java/Git/bin/git.exe", "workbench.iconTheme": "vscode-icons" }
Note: The path should be written as " /” in the form
For more knowledge about VSCode, please visit: vscode tutorial
!The above is the detailed content of A brief analysis of how to manually configure Git in VSCode (graphic tutorial). For more information, please follow other related articles on the PHP Chinese website!