Windows Git Worktree

Gotchas working in a git worktree on Windows and sharing a branch across parallel sessions. Use when a fresh worktree shows the whole tree as "modified" with no real changes (core.autocrlf / CRLF-LF warnings), when node_modules is missing in a worktree, or when two agents/sessions edit the same worktree/branch and you must commit only your own files. Covers diagnosing phantom EOL "modifications" (git diff --ignore-cr-at-eol / --numstat) and fixing them permanently with a committed .gitattributes + git add --renormalize, junctioning node_modules into the worktree, staging scoped to your files with git mv to preserve history, and matching exact tab indentation for whitespace-sensitive edits.

BlakeHastings 56c7158 3.8 KB Updated

File contents

BlakeHastings/claude-code-artifacts/tree/main/windows-git-worktree commit 56c71587a8

Frequently asked questions

npx skillmds@latest add blakehastings/windows-git-worktree