Git & GitHub for Data Analysts
Back to Git, GitHub, and a Polished Repo

Using Git with Visual Studio Code (Official Beginner Tutorial)

Official beginner tutorial from Microsoft on using Git with VS Code.

7 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.
Loading progress...

Key moments

  1. Repository Initialization — Initializes a Git version control repository for the currently open folder.
  2. Branch Renaming — Renames the default branch using the VS Code Command Palette.
  3. Staging and Committing — Stages untracked and modified files with the plus icon and records a commit snapshot.
  4. Branch Creation — Creates a new feature branch and switches context using the status bar.
  5. Gutter Annotations and Diffs — Inspects file changes using color-coded gutter markers and the built-in diff tool.
  6. Branch Switching — Toggles between main and working branches via the bottom status bar.
  7. Branch Merging — Integrates changes from a completed feature branch into the active main branch.
  8. GitHub Integration — Publishes the local repository to GitHub with visibility settings and OAuth authentication.
  9. Cloning Repositories — Clones a remote repository by URL and opens it directly in a workspace.
PDF notes

Frequently asked questions

What is the difference between 'U' and 'A' next to files in the sidebar?

'U' stands for Untracked, meaning Git has not indexed the new file, while 'A' stands for Added, meaning the file is staged for the next commit.

Do I need to install a separate credential helper to connect VS Code to GitHub?

No, VS Code includes built-in GitHub OAuth authentication that triggers automatically when you select 'Publish to GitHub' or clone private repositories.

How can I see what changes I made before committing?

Click on any modified file in the Source Control panel to open VS Code's side-by-side or inline diff comparison against the last commit.

How was this lesson?

Your feedback helps us refine explanations and catch bugs.