Add .gitattributes file to force LF line endings #320

Open
opened 2026-06-29 08:37:46 +00:00 by rob · 0 comments
Owner

When setting up a VM on windows, line-endings become a problem.

This can be solved by setting core.autocrl=input during git installation on windows.

But a better solution would be the addition of a .gitattributes file at the top level of the repository. That way, it should just work for windows users, without having to touch their global git configuration.

To Do: Figure out the correct settings and put them in .gitattributes. Test on windows.

When setting up a VM on windows, line-endings become a problem. This can be solved by setting `core.autocrl=input` during git installation on windows. But a better solution would be the addition of a .gitattributes file at the top level of the repository. That way, it should just work for windows users, without having to touch their global git configuration. To Do: Figure out the correct settings and put them in .gitattributes. Test on windows.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rob/pms3#320