DEV Community

Cover image for Git version control basics in VS Code
Burke Holland
Burke Holland

Posted on

8 3

Git version control basics in VS Code

When you're first starting out as a developer, one of the big curve balls that gets lobbed right at your face is the concept of "version control".

I've been a developer for 17 years and version control is a struggle for me to this day. Sometime around 12 years ago, we all simultaneously decided to standardized on Git - which is a prolific, but objectively difficult to use source control management (SCM) tool. It's kind of like standardizing on English as a language for the entire world. Does a building burn up, or burn down? YES.

One of the things that Visual Studio Code tries to do is abstract some of that confusion away for you. There are certain motions that we make every day around source control that VS Code can handle for you. A typical flow might look something like this...

  1. Change a file(s)
  2. Stage your changes
  3. Commit with a message
  4. Push

VS Code is quite good at managing this workflow for you so you never have to drop into a terminal. Even after you get comfortable with using the git command line interface, you'll likely find that the VS Code flow is still faster because there's no context switching.

Check out this video on version control basics in VS Code.

You can do a lot more with Git in Visual Studio Code, and even MORE with GitHub. Visit vscode.github.com for 20 quick video tips that cover everything from how to change your diff view to how to create a pull request right from the editor.

Oh - and not only can you use GitHub from within VS Code, but you can also use VS Code from within Github...

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more