Git · Junior · Question 60 of 75

Why do Windows and macOS users sometimes see every line of a file as changed?

Explanation

Configure core.autocrlf or, better, a .gitattributes rule like * text=auto eol=lf, so the repository stores LF and each OS gets what it needs.

Further reading

Problem with a question

Git · Junior · question 60

Test yourself

Take the Git · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz