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 in this unit:
0: | Introduction |
1: | The interface |
2: | Opening folders |
3: | Editing |
4: | Search |
5: | ▶︎ Source control |
6: | Extensions |
7: | Themes |
8: | Recommended extensions |
9: | The command palette |
10: | Shortcuts |
11: | Customization |
12: | Terminal |
Are you intimidated by Git? Can’t figure out
merge vs rebase? Are you afraid of screwing up
something any time you have to do something in
Git? Do you rely on ChatGPT or random people’s
answer on StackOverflow to fix your problems?
Your coworkers are tired of explaining Git to
you all the time? Git is something we all need
to use, but few of us really master it. I
created this course to improve your Git (and
GitHub) knowledge at a radical level. Launching
May 21, 2024. Join the waiting list!