Track
Basics
7 Lessons, then a Checkpoint of 3 Challenges.
Where everyone starts.
Lessons
Follow them in order, or play any Lesson once the Track is unlocked.
- How this works
Every Lesson has two halves. On the left you read the Lesson and get your Challenges. On the right, the Live Graph sits above the Terminal.
3 Challenges.
- A new repository
A repository is a folder whose history git keeps. Git stores that history in a hidden folder called .git, inside the project's folder. You never change .git…
2 Challenges.
New commands:
git initgit status
- Staging and committing
A commit is a snapshot of your project: every file as it was at one moment, with a message that says what changed. Commits are the circles in the Live Graph.
3 Challenges.
New commands:
git addgit commit -m
- Reading history
Git keeps every commit you make, so a repository holds its whole history. This Lesson's commands read that history. They only look: they never change your…
3 Challenges.
New commands:
git loggit log --onelinegit log --graphgit log --allgit show
- Seeing changes
git status tells you which files changed. git diff shows you what changed in them, line by line, so you can check your work before you commit it.
3 Challenges.
New commands:
git diffgit diff --stagedgit commit -a
- Ignoring, moving and removing files
Some files should never go into a commit: logs a tool writes while it runs, backup copies your editor makes, passwords. And some files you've already…
4 Challenges.
New commands:
git rmgit rm --cachedgit mv
- Who you are
Every commit records who made it: a name and an email. git log shows them on each commit's Author: line, newest commit first:
2 Challenges.
New commands:
git config user.namegit config user.emailgit config --global
Checkpoint
The Track ends with a Checkpoint of 3 Challenges that use only this Track's commands and those of the Tracks it builds on. Passing the Checkpoint completes the Track, even before you have played every Lesson.