Interview Prep/Git & GitHub/Config, Line Endings, Files and Platform Quirks

You renamed `header.tsx` to `Header.tsx` on macOS. Locally everything builds, but Linux CI fails with `Module not found: Can't resolve './components/Header'`.

IntermediateTroubleshootingConfig, Line Endings, Files and Platform Quirks
Answer

Likely causes → macOS and Windows filesystems are case-insensitive, and Git sets core.ignorecase=true there. Renaming only the case in Finder or the IDE is invisible to Git, so the repo still contains header.tsx.

Diagnose →

git ls-files | grep -i 'components/header'
git config core.ignorecase

Fix → Rename through Git so the index changes:

git mv -f src/components/header.tsx src/components/Header.tsx
git commit -m "Rename header.tsx to Header.tsx"

Prevent → Use git mv for case-only renames, enable case-sensitive import checks in linters/TS (forceConsistentCasingInFileNames), and run CI on Linux.

All Git & GitHub questions Roadmap: Git & GitHub

More on Config, Line Endings, Files and Platform Quirks