Question · Vibe coding with Claude Code course · Module 10: TikTok clone
When to remove a worktree
When do you choose to remove a worktree after /exit?
Answer options
- Always right away, because commits reach main by themselves
- Never, a worktree disappears by itself after the build
- Before the merge, so that the merge goes faster
- Only when its branch is merged into main, because removing deletes the folder and the branch together with the work
You can check the correct answer by solving this task in the CodeWorlds game.