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:
- 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.
Step 2: After Installing, you can check if it is installed properly or not by typing the following command in the Command Prompt:
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: