Visual Studio Code comes with integrated support for Git version control. Git is a distributed version control system; each developer has a copy of the same repository.
Setting up a repository is simple, as follows:
- Open a folder that contains a project. Then, select the Git button (or press Ctrl + Shift + G).
- Click on Initialize git repository button as shown in the following screenshot:
- Once you have done this, files may be added to version control when committing (applying a change).
Subsequent changes to files may be inspected before committing again: