Use Git Worktrees for Concurrent Work

Mid-way through Helm edits, Bob's commit breaks the staging probe. Fix it in a second working tree on the team's latest main — without stashing or disturbing your Helm work.

Project labintermediate~25 minPro

What you'll do

  • ✓Add a worktree on a new branch
  • ✓Commit and push from a second worktree
  • ✓Remove a worktree cleanly
  • ✓Explain what worktrees share

Lab outline

  1. 01Worktree
  2. 02Hotfix
  3. 03Remove

Before you start

  • Stash (git-10), fetching (git-16)

Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.

← All Git labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

Use Git Worktrees for Concurrent Work — Git lab | Kube Labs