We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Delete Worktrees

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

Assignment

Run and submit the CLI tests from the root of the main working tree.