0

I'm trying to create a .gitattribute file on Windows 10 while storing my checkout and repo on OneDrive. I'm trying to correct the CRLF issue with some CSVs I keep having to upload, but putting them in the repo with the CRLF makes every line in the file read as changed because the ones in the repo only have LF.

According to this answer you have to name the file .gitattribute. on windows to be able to fix the CRLF issue.

I'm using the following version of git:

git version 2.19.0.windows.1
leeand00
  • 25,510
  • 39
  • 140
  • 297
  • the question you quote dates back from 2013 (granted, a comment states it still had issues in 2017). Have you tried creating a `.gitattributes` file (no dot at the end) ? – LeGEC Jun 06 '19 at 15:45
  • The file's name is `.gitattributes` (note the `s` at the end). The hack for Windows is to use the name `.gitattributes.` (note that this ends with `s.` not just `.`). – torek Jun 06 '19 at 16:10

0 Answers0