Git in Visual Studio Code
Git is the default source code management (SCM) tool for Visual Studio Code, which can begin using from the Visual Studio GUI after installing Git on your system (Git for Windows can be installed from the following link: https://git-scm.com/download/win). However, you can enjoy further benefits from installing extensions that will enrich the integration. I recommend using the GitLens extension that adds many functions such as different views for Git history, blame functionality, and more.
Visual Studio Code GUI for Git
First, we will look at the Visual Studio Code interface:
Figure 15.14: Visual Studio Code interface
Let’s take a closer look at the points numbered in the above screenshot:
- The current branch (HEAD) – by clicking on this, you can create new branch or checkout another existing branch (switch to the branch)
- The status of the repository – we should be in sync with the remote repository...