Skip to content
Related Articles

Related Articles

How to Install Git in VS Code?

View Discussion
Improve Article
Save Article
  • Last Updated : 01 Feb, 2022

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:

  • Performance: Git supports rapid branching and merging, and includes specific tools for visualizing and navigating a non-linear development history in the most optimized way possible.
  • Efficiency: It is efficient in handling large projects and is very fast and scalable compared to other version control systems.
  • Data Assurance: It provides good data assurance. The history is stored in such a manner that the ID of a particular version depends upon the complete development history. 
  • Automatic Garbage Collection: It provides an automatic garbage collection that performs when enough loose object has been created in the repository,

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

Downloading-Visual-Studio-Code

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

Downloading-git

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

Verifying-git-is-installed-or-not

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.

Configuring-Git-account-with-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

Verifying-account-is-properly-linked-or-not

Enable Git in Visual Studio Code:

Step 6: Open Visual Studio Code

Step 7: Go to Settings in Visual Studio Code.

Go-to-Settings-in-Visual-Studio-Code

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

Go-to-the-Search-Bar

Step 9:  Now tick the CheckBox to Enable Git.

Enabling-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:

Source-control-tab

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!