warning: LF will be replaced by CRLF in assets / plugins / bootstrap-treeview-master / tests / tests.js

0

I am creating a repository in git with the git init command and then git add , the problem I have is that the git bash shows me a warning that I show next:

  

warning: LF will be replaced by CRLF in   assets / plugins / bootstrap-treeview-master / tests / tests.js.

I already read a bit about the warning and put the following line:

git config --global core.autocrlf false

But the message keeps coming up. How can I solve it?

    
asked by Guillermo Ricardo Spindola Bri 10.04.2018 в 18:01
source

2 answers

0

I was able to solve it in the following way:

git config --global core.autocrlf false

git config --global core.safecrlf false

    
answered by 10.04.2018 / 19:24
source
0

This error is because Unix represents the end of the line as a line feed LF .

In Windows, a line is represented with an Enter CR and a line feed LF therefore you have to join the two so that this problem does not CRLF .

If you want to disable this warning, write this in the git command line

git config core.autocrlf true

If you want to read more about how to use this command I leave this link to the official documentation git

    
answered by 10.04.2018 в 18:39