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.
- 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 addgit worktree add -bgit worktree listgit worktree remove
- 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 addgit submodule update --init
- 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.hooksPathgit commit --no-verify
- 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 --listgit config --unset
- 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-parsegit cat-file -tgit cat-file -pgit hash-objectgit 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.