Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly misleading description of line endings in Git #2

Closed
fpinter opened this issue Mar 14, 2019 · 1 comment
Closed

Slightly misleading description of line endings in Git #2

fpinter opened this issue Mar 14, 2019 · 1 comment

Comments

@fpinter
Copy link

fpinter commented Mar 14, 2019

The "culprit" is the fact that Git adds an invisible character at the end of every line. This is how Git tracks changes. (More info [here](https://help.github.com/articles/dealing-with-line-endings/).)

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
Copy link
Contributor

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

Will update the slides. Thanks for the catch!

grantmcdermott added a commit that referenced this issue Mar 25, 2019
grantmcdermott pushed a commit that referenced this issue Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants