From the course: Learning Visual Studio Code
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Initializing a repository and managing changes - Visual Studio Code Tutorial
From the course: Learning Visual Studio Code
Initializing a repository and managing changes
Visual Studio Code provides integration with the Git source control system right out of the box. However, it's important to know that it does not include Git itself. You'll still need to install that yourself if it wasn't pre-installed on your operating system. Once you have Git installed and you have a project open, you can access the source control features by clicking the source control icon on the activity bar. This project doesn't currently have an associated Git repository, but I can easily create one by just clicking the "Initialize Repository" button. That created a new repository and added all of the files in this project as untracked files. That's what the little green U next to each file means. Clicking on a file in the source control panel will open a diff view of the file, showing how it's changed since the last time it was committed to the repository. Since I just created the repository and this file hasn't been committed yet, all of the contents are effectively new and…