Track

Power Tools

5 Lessons, then a Checkpoint of 3 Challenges.

Builds on Rewriting History.

Lessons

Follow them in order, or play any Lesson once the Track is unlocked.

  1. Worktrees

    You're halfway through something on a branch. Files are changed, and nothing is ready to commit. Then something else needs doing right now, on another branch…

    3 Challenges.

    New commands:

    • git worktree add
    • git worktree add -b
    • git worktree list
    • git worktree remove
  2. Submodules

    Projects often use code that lives in another repository: a shared library, a theme, a set of styles that several websites use. You could copy its files into…

    4 Challenges.

    New commands:

    • git submodule add
    • git submodule update --init
  3. Hooks

    A hook is a script git runs at a set moment, such as just before it makes a commit. If the script says no, git stops. Teams use hooks to catch mistakes before…

    3 Challenges.

    New commands:

    • git config core.hooksPath
    • git commit --no-verify
  4. Config and aliases

    git config holds git's settings. You've set a few already: your name and email, pull.rebase and core.hooksPath. This Lesson adds aliases, short names for the…

    3 Challenges.

    New commands:

    • git config alias.*
    • git config --list
    • git config --unset
  5. Under the hood

    Every commit, every folder and every version of every file in a repository is stored in .git as an object. Each object has an id, 40 characters worked out…

    3 Challenges.

    New commands:

    • git rev-parse
    • git cat-file -t
    • git cat-file -p
    • git hash-object
    • git ls-files

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 Power Tools Checkpoint