Safe sandbox
LEARN BY DOING

Learn Git & GitHub.

See what happens behind every command.

EXPLORE · EXPERIMENT · UNDERSTAND
START HERE · NO EXPERIENCE NEEDED

You do not need to know code
to understand Git.

Imagine improving your own pancake recipe. Git keeps the versions you choose to save. Learn that solo workflow first; add teammates once you understand your own history.

01

Why use it?

Keep useful versions, see what changed, and safely try new ideas without naming files final-final-v3.txt.

02

Git remembers.

Git is the history keeper on your computer. You deliberately save a version called a .

03

GitHub hosts.

GitHub hosts your repository online. Start with your own copy. The separate team path introduces collaboration later.

01 · RECOMMENDED START

Learn solo.

One person, one project. Build your own history before bringing in anyone else.

  1. Start a repository locally
  2. Try branches and merge your idea
  3. Use your own GitHub repository
  4. Correct your own mistake
Start the solo path →4 lessons · no teammates
02 · AFTER THE SOLO BASICS

Work as a team.

Use the same basics with other people. Join an existing project and combine everyone’s work.

  1. Clone, propose, and review a change
  2. Resolve two people’s conflicting edits
Explore the team path →2 lessons · you, Maya, and Leo
▤Try it with a pancake recipe
NO TYPING REQUIRED
YOUR COMPUTER · pancakes.txt
PANCAKE RECIPE · THE FILE YOU EDIT

Classic pancakes

Flour1 cup

Milk1 cup

Chocolate chipsNone

Matches saved version 1
◫
Selected for the next save · staging area

No changes selected yet.

YOUR SAVED VERSIONS

Viewing saved version 1: Classic pancakes · no chocolate chips.

STEP 1 / 4

First, make a change.

pancakes.txt holds the recipe instructions. Version 1 makes classic pancakes. Let’s try chocolate chips while keeping the original version.

◎
Your online copy on GitHub

Your GitHub copy has version 1 · Classic pancakes

This preview begins with an already saved recipe to explain the idea. Lesson 1 shows how to create that first saved version from an empty folder. Git tracks the recipe instructions, not the pancakes you cook. In real projects, a commit can save changes across many files.

QUICK CHECK

You saved a commit on your laptop.
Is your GitHub copy updated yet?

Pick an answer. It is fine to try both.

GIT WORDS, TRANSLATED

A few words you will meet

Open a word whenever you need it. You do not need to memorize them all.

Init+Start Git tracking in a folder

git init prepares a local repository and its hidden .git records. It creates no commits and does not connect to GitHub.

Repository+The project and its history

Usually shortened to “repo”. It contains the files and the Git record of saved versions.

Commit+A named saved version

A snapshot of the project with a message, an author, and links to earlier commits. Committing saves locally; it does not upload.

Staging area+The recipe content chosen for the next save

The exact content you have chosen for the next commit. Git also calls this the index.

Branch+A named recipe variation

A name that points to a commit. It moves forward as you save more work on that branch. Branches share their earlier history.

HEAD+Your current place in the recipe history

Git’s reference to where you are working. It usually points to your current branch.

Remote+A copy hosted elsewhere

A repository your local Git can exchange work with, often hosted on GitHub.

Push+Send your saved work

Upload commits and update the chosen branch in a remote repository. It does not send uncommitted edits.

Fetch+Check for and download updates

Download remote history and update local remote-tracking bookmarks, such as origin/main. Your current branch stays in place.

QUICK RECAP · KEEP THIS HANDY
Solo workflow → Git concepts
What happens in the recipe exampleGit concept
You set up Git history keeping for your recipe folder. No saved versions yet.
You change the pancake recipe on your computer.
You choose which recipe changes belong in the next saved version.
You save a version called “Add chocolate chips”.
You try the chocolate variation separately from your main recipe.
You store your empty GitHub repository’s address with the nickname origin.
You send your saved recipe version to GitHub.
You check for and download your own online recipe updates without changing your current version.
You download your online updates and bring them into your current recipe.
You bring your saved variation or downloaded update into main.
You save a correction that reverses a mistake, keeping the earlier recipe versions.

Tap a Git concept for its meaning. Return to Introduction whenever you need a reminder.

Later: team workflow → Git concepts +

Learn these after the solo path. Other people now have their own copies and ideas.

Working with other people
Team actionGit concept
You download the team’s existing recipe and its history.
Your friend asks the team to include their improvement in your main recipe.
You both changed the same sugar line differently and must choose a final amount.
NOW YOU HAVE THE BIG PICTURE

Build your first repository from an empty folder.

The lesson buttons run each action for you. Type commands only when you feel ready.

Start lesson 1 ✦