learn git.
0/25 done
interactive course · 100% in your browser

Learn Git.
Slowly, in plain English.

25courses take you from “what is a terminal” to your first merge conflict and push. No jargon without explanation, no memorising — every idea is taught the slow way, then practised by typing real commands into a simulated terminal.

166 minutes total·nothing to install·progress saved on this device
start course 01 — Meet the terminal
25 courses · beginner to first merge0/25 completed
the basics
01

Meet the terminal

Before git, you need to be okay with the black window. It is friendlier than it looks.

02

What is Git actually doing?

Save points in a video game, but for your folder of files.

03

git init: turn a folder into a repository

One command. From now on, git is watching this folder.

04

The three areas of git

Working folder, staging area, repository. Learn this map and git stops being confusing.

05

git status: your best friend

The command you will run more than any other. Learn to read it once, benefit forever.

06

git add: choose what goes in the picture

Staging files — the checklist for the next save.

07

Your first commit

The save point is taken. One command, one message.

08

git log: read the album

Every save point, newest first. Learn to read the entries.

09

The daily loop: edit, add, commit

Ninety-nine percent of using git is these three moves, repeated for years.

everyday git
10

.gitignore: files git should never touch

Passwords, logs, junk folders — keep them out of the photo album.

11

git diff: see exactly what changed

Line by line, before you commit. The red and the green.

12

Stage some things, leave others

You do not have to photograph everything at once.

13

Deleting files the git way

Git saw everything you delete too. Deletions are part of the photograph.

branches
14

Branches: parallel universes

Try something risky without breaking the real thing.

15

git branch: create a universe

One command makes a new line of history, ready to stand on.

16

git switch: move between universes

Your whole folder changes to match the branch you stand on.

17

git merge: bring the work home

Take the commits from one universe into another.

18

Merge conflicts: when git needs a human

Both sides changed the same line. Only you can decide the winner.

19

git log --graph: see the family tree

Branches and merges, drawn in plain text.

remotes and beyond
20

Remotes: the album, on the internet

Git vs GitHub in two minutes, then the commands that connect them.

21

git clone: download a whole project

Files and complete history, in one command.

22

git push: upload your work

From your computer to the internet, in one move.

23

git pull: get the team's work

Someone else pushed. Here is how their commits reach you.

24

Undo, carefully

Three safety nets, in order of safety. Nothing here is a time machine.

25

You know git: cheat sheet and final exam

Twenty-five courses, one table, one last workout.