

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Worktrees
incomplete
2: Linked Worktrees
incomplete
3: No Duplicate Branches
incomplete
4: Tracking
incomplete
5: Upstream
incomplete
6: Delete Worktrees
incomplete
This lesson's interactive features are locked, please to keep using them
You may never need to stash again! Okay, stash is still useful for tiny stuff, but worktrees are so much better for long-lived changes.
However, at some point you will need to clean up your worktrees. The simplest way is the remove subcommand:
git worktree remove WORKTREE_NAME
An alternative is to delete the directory manually, then prune all the worktrees (removing the references to deleted directories):
git worktree prune
Run and submit the CLI tests from the root of the main working tree.