
· Amit Kothari · AI
What a git worktree does not isolate
A git worktree isolates your working directory and your index. It does not isolate the stash stack, which is shared by every checkout in the repository. Here is what I measured on git 2.50.1, why MERGE_AUTOSTASH escapes the problem through an accident of spelling, and how one defensive stash can make a worktree look safe to delete.
