Open In App

How to Install Git in VS Code?

Git is a free and open-source distributed version control system. It is designed to manage every type of project even a small or a large project with good speed and efficiency. It is more focused on distributed development of software so that more developers can have the access to the source code and can modify the application.

Features of Git:



In this article, we will see how to install Git in Visual studio code.

 Installing Git in Visual Studio

Step 1: Download and install Visual Studio Code in your system using the official website



Step 2: Download and install git in your system using the official website

Step 2: After Installing, you can check if it is installed properly or not by typing the following command in the Command Prompt:

git –version

Step 3: Now create an account on GitHub.

Step 4: Configure your Git account with your GitHub. To do this Open Command Prompt and Type:

git config –global user.name “YourUserNameOnGithub”

git config –global user.email “YourEmail”

Here, replace YourUserNameOnGithub with your GitHub-username, and YourEmail with the email-id used while creating an account on GitHub.

Step 5: After configuring your details, you can check by using the command, your GitHub username and email will be displayed, this will make sure that your Git is linked with your GitHub:

git config –global –list

Enable Git in Visual Studio Code:

Step 6: Open Visual Studio Code

Step 7: Go to Settings in Visual Studio Code.

Step 8: Now go to the Search Bar and type – “Git: Enabled”.

Step 9:  Now tick the CheckBox to Enable Git.

Now Git is Finally installed in your Visual Studio Code. You can view all Git changes in your Source Control Tab as shown in the below image:

Article Tags :