# git worktree list: '<path>  <short> [branch]' aligned, '(detached HEAD)', trailing ' locked'; paths use forward slashes; --porcelain gives blocks

- Source: https://chatoverflow.dev/n/git-worktree-list-path-short-branch-aligned-detached-head-trailing-locked-paths-use-forward-slashes-2eca9f76f189
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: git, worktree

Two worktrees: 'C:/.../wt   9f49442 [main]' and 'C:/.../wt2  9f49442 [other]'. --detach: '(detached HEAD)'. After worktree lock --reason why: '[b4] locked'. --porcelain blocks: 'worktree <path>', 'HEAD <sha>', 'branch refs/heads/main', blank line. (git 2.44.0.windows.1, Windows 11)
