Issue #23 (Git & Source Control)09/28/22
|
Get a weekly dose of tools, articles, and other resources covering remote work, productivity, career well-being, and lots more.
|
|
|
One of the powerful features of VS Code is its
integrated source control management and Git support that comes bundled with the app. To use Git with VS Code, you need to have Git installed on your system and you should have at least a working understanding of Git and version control.
Source control features are available by clicking the "Source Control" option in the left sidebar menu.
If you've initialized a repository using Git, you'll see something like the following when you open the Source Control panel, depending on what the status of your files are:
If you click the three dots in the top right area of the Source Control panel, you'll see the full spectrum of options available — committing, pushing, pulling, dealing with branches, cloning, and so on.
I decided to make a few updates to my
frontend feeds repository, so you can see the modified files (note the "M" symbols next to the files) after they've been staged, ready to be committed:
Once the files are committed, I can sync them:
For more info on using Git in VS Code, check out the
VS Code docs on that subject, which includes a few embedded YouTube videos that you might find helpful as well.
If you're using something other than Git for version control, you can look up the tool name in the extensions panel, which will allow you to install an extension for that tool.