When I clone with Sourceree, the line feed code LF is automatically converted to CRLF. Where can I set it?
git sourcetree
On the command line
git config --global core.autocrlf false
or
git config --global core.autocrlf input
Let's say thatC:\Users\username\.gitconfig
file
autocrlf=true
I think changing to input
or false
will fix it.
Difference between Input and False, True
true
converts LF
to CRLF
when checking out.Convert CRLF
to LF
when committing.
input
does not convert when checking out, but converts CRLF
to LF
when committing.
false
does not translate.
Checkout is the same even if you clone it.
© 2024 OneMinuteCode. All rights reserved.