The first step is to download the git installation package. After installing git, configure the environment variable "D:\git\Git\cmd", open cmd in win R and enter the command git verification Whether the installation is successful and you can enter git at any path indicates that the environment variable settings take effect. ,As shown below
For convenience, you can configure the vscode terminal to git, and perform similar operations in the user settings file
Restart vscode to see the configuration effect. . .
Next, open the folder where the python project is stored locally and initialize the storage. After that, a .git file will be generated in the directoryThe above is the detailed content of How to install git in vscode. For more information, please follow other related articles on the PHP Chinese website!