On Windows, a symlink in the repo (`config/current -> envs/prod.yml`) is checked out as a small text file containing `envs/prod.yml`.
IntermediateTroubleshootingConfig, Line Endings, Files and Platform Quirks
Answer
Likely causes → core.symlinks=false, the default on Windows when the user lacks permission to create symlinks. Git writes the link target as plain text instead.
Diagnose →
git config --show-origin core.symlinks
git ls-files -s config/current # mode 120000 = symlink in the repo
Fix → Enable Windows Developer Mode (or run with the symlink privilege), then:
git config core.symlinks true
git rm --cached -r config/current && git restore config/current # recreate the link
Or clone again with git clone -c core.symlinks=true ....
Prevent → Avoid symlinks in cross-platform repos; use config files or build-time copies instead.
More on Config, Line Endings, Files and Platform Quirks
`warning: in the working copy of 'app.sh', LF will be replaced by CRLF the next time Git touches it`Beginner`git diff` shows `old mode 100755` / `new mode 100644` for hundreds of files with no content change.BeginnerCloning on Windows fails with `error: unable to create file src/very/deep/.../component.test.ts: Filename too long`.BeginnerYou renamed `header.tsx` to `Header.tsx` on macOS. Locally everything builds, but Linux CI fails with `Module not found: Can't resolve './components/Header'`.IntermediateCheckout on Windows fails with `error: invalid path 'logs/2024-01-01T10:00:00.log'` (or `'docs/aux.md'`) and `fatal: unable to checkout working tree`.IntermediateClone prints `warning: the following paths have collided (e.g. case-sensitive paths on a case-insensitive filesystem) and only one from the same colliding group is in the working tree:`Intermediate