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

On macOS, a file named `café.md` committed from Linux shows as both deleted and untracked, or appears as `"cafe\314\201.md"`.

AdvancedTroubleshootingConfig, Line Endings, Files and Platform Quirks
Answer

Likely causes → Unicode normalization: macOS file APIs return decomposed names (NFD, e + combining accent) while Linux stores precomposed (NFC, é). Git sees two different byte sequences. The octal escapes come from core.quotePath=true.

Diagnose →

git config core.precomposeUnicode
git ls-files | grep -n caf
git -c core.quotePath=false status

Fix →

git config --global core.precomposeUnicode true   # convert NFD to NFC when Git reads names
git config --global core.quotePath false           # show real characters
git rm --cached 'café.md' && git add 'café.md'     # if an NFD path was already committed

Prevent → Keep file names ASCII in shared repos, or enforce NFC names in a CI check.

All Git & GitHub questions Roadmap: Git & GitHub

More on Config, Line Endings, Files and Platform Quirks