Git and Github Cheat Sheet for Visual Studio Code


Git and Github Cheat Sheet for Visual Studio Code: A blog about other code editors available and why code editors like Visual Studio Code are worth checking out.

When I started learning more about programming, I started to hear a lot about Git. It seemed like an overwhelming amount of information to take in at first. But after working with it for a while and making use of it on various projects, it’s really not that bad. The hardest part is just getting your head around the terminology.

I have been using Visual Studio Code as a primary text editor since late last year. I have found it to be one of the most versatile and powerful editors out there (not to mention free) and I am glad to share some of my favorite features that can be used in conjunction with Git and Github.

Git and Github Cheat Sheet for Visual Studio Code

A blog about other code editors available and why code editors like Visual Studio Code are worth checking out.

Git is a distributed version control system, which means you can work locally but you can also share or “push” your changes to other servers. In this cheat sheet-style guide, we’ll cover some of the basic options and configuration sets you may want to use.

Configuring Git

Before we can start using Git, we need to configure it with at least our name and email address. This is important because every Git commit uses this information, and it’s immutably baked into the commits you start creating:

git config –global user.name “John Doe”

git config –global user.email johndoe@example.com

This overrides the default settings in your local repository (also called a repo), so you can override these settings on a per project basis if necessary, but it’s best to set them globally so they are already configured when you create new projects. You can specify global settings with the –global flag or omit it for local overrides. You can also configure Git to use any text editor besides nano or vi by default:

git

The Git and Github Cheat Sheet for Visual Studio Code is a quick reference for many of the common Git commands and how to use these commands within Visual Studio Code.

In this blog post, we will look at some of the other code editors that are available and why code editors like Visual Studio Code are worth checking out.

Code Editors

A code editor is a text editor that is designed for writing, editing, and formatting programming languages. A code editor can easily be distinguished from your regular text editor in that it has extra features and functions specifically designed to support the coding workflow. A good code editor will have a number of features including syntax highlighting, bracket matching, brace completion, macros, plugins and more.

Here’s a list of some popular free code editors:

Visual Studio Code

Atom

Sublime

Brackets

Notepad++

Vim

Git and Github Cheat Sheet for Visual Studio Code

Visual Studio Code has integrated source control and includes Git support in-the-box. Many other source control providers are available through extensions on the VS Code Marketplace.

Git

Commands

Keyboard Shortcut

Windows/Linux

Mac

Open Git View in Side Bar

Ctrl+Shift+G**Ctrl+Shift+G**Status Bar Status Indicator (clickable)

N/A**N/A**Show Git Output Panel

N/A**N/A**Run git command… (prompts for command)

Ctrl+Shift+P, then type git followed by the command name**⇧⌘P, then type git followed by the command name**List all commands (opens Command Palette)

Ctrl+Shift+P**⇧⌘P**Stage all changes

Alt+A, then S**⌥A, then S**Unstage all changes

Alt+A, then U**⌥A, then U**Stage selected changes

Alt+S, then S (repeatable)**⌥S, then S (repeatable)**Unstage selected changes

Alt+S, then

Git and Github Cheat Sheet for Visual Studio Code

Git is one of the most popular version control systems out there. It lets you commit code changes to a local repository and later sync with remote repositories like GitHub. It also makes it easy to work with other programmers on large projects.

If you’re not using Git, you should be. This cheat sheet will help you get started using Git from within Visual Studio Code. If you’re already familiar with git, I would recommend checking out some of the great resources at Code School’s Try Git course or Atlassian’s Git tutorials.

If you want to learn more about git, check out my Git for beginners article.

The essential Git cheat sheet for Visual Studio Code users.

Git is a software source code “Change Management” (CM) system for collaborative development. It tracks content such as files and directories, and stores their revision history. A distributed version control system allows multiple collaborators to work on the same project without requiring them to share a common network. Git is one of the most popular distributed version control systems used by software developers.

GitHub is a web-based hosting service built around Git, which facilitates collaboration between developers. It offers all of the distributed version control and source code management (SCM) functionality of Git as well as adding its own features. The company also produces a GUI-based visual Git client called GitHub Desktop, and the atom is an open source text editor with integration to GitHub.

Visual Studio Code (VS Code) is a free, open-source text editor from Microsoft. Its core features include support for debugging, embedded Git control and GitHub, syntax highlighting, intelligent code completion, snippets, and code refactoring.

In this article, we present you with a list of essential Git commands that every developer should know about to improve their productivity and workflow with Visual Studio Code:

I have been an avid user of Visual Studio for close to 15 years. In 2017 I decided to try out Visual Studio Code and it’s been my primary editor ever since.

I’ve been working with Git for close to 10 years, so I’m not new to it, but I didn’t need all the bells and whistles that Git Extensions or SourceTree had to offer.

What I wanted was a fast, simple, text-editor like interface that would allow me to quickly read diffs and make quick edits. Over time as I started using other tools like Github Desktop (which is a pretty good tool), I ended up using less and less of any of them because they all kind of started feeling bloated. This is when I found GitLens.

GitLens makes git integration into Visual Studio Code look like child’s play. It has so many features that many people don’t even know where to start…so here’s a quick breakdown of some of my favorites:


Leave a Reply

Your email address will not be published.