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
git linux windows newline core.autocrlf


source to share


No one has answered this question yet

Check out similar questions:

11347
What is the difference between 'git pull' and 'git fetch'?
6475
How to remove local (untracked) files from the current Git working tree
3946
How do I clone all remote branches in Git?
3656
How to determine the url from which the local Git repository is cloned?
2886
Remove a commit from a branch in Git
2769
Remove the file from the Git repository without removing it from the local filesystem
2725
Difference between "git add -A" and "git add".
2704
How do I clone a specific Git branch?
1811
How to "git clone" including submodules?
459
How to change line ending settings



All Articles
Loading...
X
Show
Funny
Dev
Pics