-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Problem
line endings are left up to each person’s editor and local Git config causing CRLF or LF to be placed in files depending on who is committing and from what system.
Background
If you are not paying attention to the commit you might miss that line endings were added.
It is a particular issue in the VSCode editor where a diff in the UI does not visually show the line endings.
Personally the UI works well enough and I have no need to be in the terminal enough to check each diff to see if I accidentally committed line endings that I have enabled in my git config on one system vs another
But I did confirm i'm not the only one embarrassing myself with altering line endings often!
Solution
Add a .gitattributes to enforce line endings
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels