Before we dive into Git, let's make sure you have the tools installed.
Install Git
Windows
- Go to https://git-scm.com/download/win
- Download the installer for your system (64-bit or 32-bit)
- Run the installer — the default options are fine for most users
- Open Command Prompt or PowerShell and verify:
You should see something likegit --versiongit version 2.40.0
macOS
- Open Terminal
- Install via Homebrew (recommended):
Or download from https://git-scm.com/download/macbrew install git - Verify:
git --version
Linux (Ubuntu/Debian)
- Open Terminal
- Install via apt:
sudo apt update sudo apt install git - Verify:
git --version
Install Visual Studio Code
- Go to https://code.visualstudio.com/
- Download the version for your operating system
- Run the installer
- Launch VS Code
Configure Git in VS Code
- Open VS Code
- Open the terminal (
Ctrl + ``+ `` ` or View -> Terminal) - Set your Git identity (do this once):
git config --global user.name "Your Name" git config --global user.email "your@email.com"
Install Essential VS Code Extensions
Press Ctrl + Shift + X to open Extensions, then search and install:
- GitLens — supercharges Git with inline blame annotations and history
- Git Graph — visual commit graph panel
- GitHub Pull Requests — manage PRs directly from VS Code
That's it! You're ready to start using Git from within VS Code.