The Source Control tab is enabled by clicking the third icon in the toolbar.
VS Code comes with Git support out of the box. We’ll see more about this soon, but basically here is where you’ll get access to Git inside VS Code.
Clicking the “Initialize Repository” button will initialize Git and you’ll be prompted to make the first commit:
And you’ll be able to push the repository to GitHub directly.
Source control is great because you’ll “commit” changes over time, and those changes will be “freezed” in the Git repository.
Any time you then make a new change, you’ll be able to save that single change.
In this way, in the future you’ll be able to see how the code evolved, and you’ll also be able to roll back to a specific version of your code.
Lessons this unit:
|5:||▶︎ Source control|
|9:||The command palette|