I want to force git to checkout files under Windows using just
autocrlf = input
>git config --list | grep crlf
The OP added in his question:
the files checked out using msysgit are using
CR+LFand I want to forge msysgit to get them with
A first simple step would still be in a
, to avoid any crlf conversion for files with correct eol.
But a second more powerful step involves a gitattribute filter driver and add a smudge step
Whenever you would update your working tree, a script could, only for the files you have specified in the
.gitattributes, force the
LF eol and any other formatting option you want to enforce.
If the "
clear" script doesn't do anything, you will have (after commit) transformed your files, applying exactly the format you need them to follow.