Windows teammate committed and now every file shows as 'modified' on macOS. `git diff` is full of invisible \r characters.
Set core.autocrlf properly, add a .gitattributes, renormalize.
Medium · 3 steps · +500 XP
This scenario walks through 3 steps, in order:
Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.
git config core.autocrlf inputgit add --renormalize .git commit -m "chore: normalize line endings"Use .gitattributes (`* text=auto`) so it's per-repo, not per-machine.