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.

  1. 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.

  2. 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 init
    • git status
  3. 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 add
    • git commit -m
  4. 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 log
    • git log --oneline
    • git log --graph
    • git log --all
    • git show
  5. 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 diff
    • git diff --staged
    • git commit -a
  6. 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 rm
    • git rm --cached
    • git mv
  7. 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.name
    • git config user.email
    • git 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.

Play the Basics Checkpoint