Git worktrees, discovered by way of AI agents

Cover art for Git worktrees, discovered by way of AI agents

TL;DR: A worktree is a second working directory on the same repo, so two things can happen at once without stashing, switching, or rebuilding. A decade of ignoring git worktrees ended when coding agents started littering the projects folder with siblings. Worktrees have shipped with git since 2.5 in July 2015. Feature branches covered everything: branch, work, merge, delete, repeat.

Bozhidar BatsovSep 2, 2026

From · · · 2m

TL;DR: Git worktrees, discovered by way of AI agents

A decade of ignoring git worktrees ended when coding agents started littering the projects folder with siblings.

A worktree is a second working directory on the same repo, so two things can happen at once without stashing, switching, or rebuilding. A decade of ignoring git worktrees ended when coding agents started littering the projects folder with siblings. Worktrees have shipped with git since 2.5 in July 2015. Feature branches covered everything: branch, work, merge, delete, repeat.

  • Ten years, never needed them
  • AI agents forced the introduction
  • One directory, one branch
  • A second checkout, shared guts

Read the story version — the same reporting as a swipeable deck of 10 cards.

Read the original on Emacs Redux

How we make summaries

React

Sign in to react and comment.

Comments (0)

Life is short. Keep it sweet. Respect others' opinions and be kind!

    Recommended next

    More decks on git and related topics.