How do I configure Sourcetree not to automatically convert line feed codes to CRLF when cloning?

Asked 2 years ago, Updated 2 years ago, 91 views

When I clone with Sourceree, the line feed code LF is automatically converted to CRLF. Where can I set it?

git sourcetree

2022-09-30 21:16

1 Answers

On the command line

 git config --global core.autocrlf false

or

 git config --global core.autocrlf input

Let's say thatC:\Users\username\.gitconfigfile

to manipulate configuration files
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.


2022-09-30 21:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.