Git endings of non-clone archive lines

There are so many questions and topics about converting crlf / lf to git.

But I can't find one that focuses on the ARCHIVE command.

And in my test clone it works fine from windows and linux. But the archive always returns LF to text files.

I want to use the "git archive" command on linux to download only part of the repository, to prepare the final release zip file ... to be used on windows after.

So how to FORCE crlf for text files in "git archive" command.

Trying doesn't work:

git -c core.autocrlf=true -c core.eol=crlf archive ...

      

btw, the .gitattributes file does not exist or is not involved.

+3


source to share





All Articles