Open puddlejumper26 opened 4 years ago
Hey, I found this really helpful. Just for reference however 'autolf' is not a built in git attribute. When you type 'git config --global core.autolf true' you make a false attribute that doesn't do anything. It's enough to simple type 'git config --global core.autocrlf false'
Sometimes we have problem with the CRLF and LF things, it is very common.
And it is normally the problem with
Git
. When we havetaken from this website
https://gist.github.com/ajdruff/16427061a41ca8c08c05992a6c74f59e
first we need to set the crlf and lf to the correct value with terminal
This is for the global, therefore we need to also consider about the settings in other places.
we could find them throug
git config --list
it will display as followingIf we don't know where the default
git file
is, we could usegit config --list --show-origin
it will displays as followingThen we could find and open the config throug the path, to change as following
Further explanation could be found here (https://www.jianshu.com/p/ec9564fe1c2b)