Gt

Git

beginner

Version control. Undo for your entire project.

Git tracks every version of every file in your project, lets you experiment on branches without fear, and makes collaborating with other people possible without emailing zip files. Created by Linus Torvalds in 2005 to manage Linux kernel development, it's now used by essentially every software team on Earth.

Version ControlCollaborationCode ReviewBackupsOpen Source
0%
0/8 lessons

Setup

Git is a command-line tool. After installing, tell it your name and email — every change you save is stamped with them.

Bash
winget install Git.Git
# Or download from https://git-scm.com

# Then, in a new terminal:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
git --version

Lessons

1
What Git Actually Solves
final.doc, final_v2.doc, final_FINAL_really.doc — everyone has done this. Git is
2
The Core Loop: add & commit
Edit, stage, commit. You'll run these commands thousands of times. Understand th
3
Branches
A branch is a parallel timeline for your code. Experiment freely on a branch — i
4
Merge Conflicts
Two branches edit the same line, then merge. Git can't guess which version you w
5
Remotes: push, pull & GitHub
So far everything lived on your machine. A remote is a copy of your repository o
6
Undoing Things
The whole point of git is that mistakes are recoverable. Here's the undo toolbox
7
Reading History Like a Detective
Who wrote this line? When did this bug appear? What changed last week? Git answe
8
Git Cheatsheet
The commands you run daily, plus the rescue toolbox — one page.