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

Add git line-ending config for Windows #13

Conversation

kayhadrin
Copy link
Collaborator

  • Avoids having git detect lots of modified files on Windows due to CR/LF EOL differences.

* Avoids having git detect lots of modified files on Windows due to CR/LF EOL differences.
@cpojer
Copy link
Collaborator

cpojer commented Dec 20, 2024

.gitattributes like this should be a global config on your computer, not part of the repo. Alternatively, I recommend using WLS.

@cpojer cpojer closed this Dec 20, 2024
@kayhadrin
Copy link
Collaborator Author

I know it can be configured globally, and I already use the WSL, but my git repo files still get checked out with CR/LF for some reason; I suspect it's because I used VS Code's git extension to checkout the repo instead of doing it from the WSL CLI. (I.e. VS Code checked out the files onto a "C:.." drive location)
Personally, I think it would reduce friction to have that config file in the repo instead of expecting everyone to already have the right environment setup.

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

Successfully merging this pull request may close these issues.

2 participants