flâneur — a map of the web's best reading

How I Use Git Worktrees

matklad.github.io · 1,260 words · saved by 1 readers

There are a bunch of posts on the internet about using git worktree command. As far as I can tell, most of them are primarily about using worktrees as a replacement of, or a supplement to git branches. Instead of switching branches, you just change directories. This is also how I originally had used worktrees, but that didn't stick, and I abandoned them. But recently worktrees grew on me, though my new use-case is unlike branching.

There are a bunch of posts on the internet about using git worktree command. As far as I can tell, most of them are primarily about using worktrees as a replacement of, or a supplement to git branches. Instead of switching branches, you just change directories. This is also how I originally had used worktrees, but that didn’t stick, and I abandoned them. But recently worktrees grew on me, though my new use-case is unlike branching. When a Branch is Enough If you use worktrees as a replacement for branching, that’s great, no need to change anything! But let me start with explaining why that wor

Explore this link on the map →

saved by

related reading