Learn Git Fundamentals: Setup to Collaboration in 5 Steps

Learn Git Fundamentals: Setup to Collaboration in 5 Steps

🧰

Instant Toolkit

2 artifacts

📋
Step-by-Step Guide

1

Install Git

Choose your OS:

Windows: Download installer from https://git-scm.com/download/win and run it.

macOS: Run xcode-select --install in Terminal or download from https://git-scm.com/download/mac.

Linux (Ubuntu/Debian): sudo apt update && sudo apt install git

Verify: git --version

First-Time Setup

git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"

Verify: git config --list

Why this step matters:
  • -Establishes your core development environment for version control
  • -Proper configuration attributes commits correctly in team projects
30-60 minutes
Terminal/Command Prompt, Web browser, Text editor
$0
Definition of Done
  • Git is installed and `git --version` shows version info
  • `git config --list` displays your name and email
Common Mistakes to Avoid

Using wrong email not matching GitHub

Set email to your GitHub account email with `git config --global user.email`

Not verifying installation

Always run `git --version` and `git config --list` after setup

Installing without PATH update on Windows

Restart terminal or add Git to PATH during install

2

Following along, or just reading? 👀

Spin up a personalized “learn Git” plan you can save, check off, and return to anytime — unlimited on the free trial.

Start free trial →
3
4
5