Curious about Lab5 step 4 #4
-
|
This isn't really a question I need help with, more a bit of curiosity. On Lab5 (setup Git) step 4 says 'Setup Line Ending Preferences'. I've worked with git before but am not familiar with Line Ending Preferences, what exactly do these commands do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
It helps collaborators from different operating systems be more "in sync" with each other. For example, Windows uses '\r\n' for new line endings while Mac uses only '\n'. Sometimes this causes unwarranted changes/discrepancies. This is where git solves this issue by converting the line ending format to what is being used/compatible. This is how I interpreted it at least. |
Beta Was this translation helpful? Give feedback.
It helps collaborators from different operating systems be more "in sync" with each other. For example, Windows uses '\r\n' for new line endings while Mac uses only '\n'. Sometimes this causes unwarranted changes/discrepancies. This is where git solves this issue by converting the line ending format to what is being used/compatible.
This is how I interpreted it at least.