Home > Development Tools > VSCode > A brief analysis of how to manually configure Git in VSCode (graphic tutorial)

A brief analysis of how to manually configure Git in VSCode (graphic tutorial)

青灯夜游
Release: 2022-06-01 21:15:48
forward
5168 people have browsed it

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!

A brief analysis of how to manually configure Git in VSCode (graphic tutorial)

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

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

Click Edit in settings.json and enter the installation path of Git on your computer

##3. Add the path

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

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!

Related labels:
source:csdn.net
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