uo-ec607 / lectures

Lecture notes for EC 607
MIT License
1.5k stars 616 forks source link

Slightly misleading description of line endings in Git #2

Closed fpinter closed 5 years ago

fpinter commented 5 years ago

https://github.com/uo-ec607/lectures/blob/528eb38cdabfd9b0fc32b79333ce5c494a132066/02-git/02-Git.Rmd#L547

Line endings ("invisible characters") aren't added by Git; they're always there, whether you're in a Git repo or not. Most people don't notice them under normal circumstances because their text editors handle it seamlessly. It only comes up with Git because, by default, Git considers "stuff\r\n" and "stuff\n" to be different lines.

(These slides are great, by the way!)

grantmcdermott commented 5 years ago

Agree and sorry for the late response. (End of term mania.)

Will update the slides. Thanks for the catch!