I have a repository to which I would like to add large text data files. Due to their number and size (which can be up to approximately 100MB in some cases), I would like to track those files with git-lfs
.
I've added such a file with git lfs track data.txt
, and changed the default -text
(which specifies a binary file) to text=auto
in the .gitattributes
file (as documented in git-scm's gitattributes documentation). This gives me a .gitattributes
which looks like:
data.txt filter=lfs diff=lfs merge=lfs text=auto
And just to be sure, I have refreshed the repository. Even so, it seems that the file is still tracked as a binary object and correspondingly the end-of-line conversion filter is not applied on check-out (i.e. the file is getting checked-out with the original line endings it was checked-in with).
I've also tried with text=crlf
(and the variant text eol=crlf
) with the same result. I have seen a number of documents and tutorials about using git-lfs
but they all seem to be geared towards tracking binary files (such as *.bin
, images, audio files, ...)
Is there a way to make the file tracked as a large text file (and have the end-of-lines normalized as would be for regular text files) with git-lfs
?
I am currently using git-lfs
1.5.2, and git
for Windows 2.10.2 (64-bit version) on a Windows 7 platform, with the core.autocrlf=true
configuration.