How to use version control in VS Code

Raul Sanchez
Sep 2, 2018 · 2 min read

So I am no expert by any means but I thought I’d share this quick write up about using VS Code’s integrated source control. Many beginners like myself struggled to understand and use version control. When I was starting out this was one of the easiest ways I was able to pick up GIT. So let’s get started:

First, create a new repository in Github and copy this line to your clipboard

Second, git init the project folder and paste the line copied from the previous step

And finally, you can start pushing updates or making pull requests through VS Code like so:

Go into the Source Control tab
Add the changes by clicking on the plus icon (+)
Type in a message and click the check when done
Click on the more action (…) and push to…
Select origin
Successfully pushed to Github via VS Code

And there you have it. You can start using the integrated source control in VS Code.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade