1

Every time I push to github from my windows machine I see these messages:

C:\G\ab>git commit -m "Added new breadcrumb code"
[master warning: LF will be replaced by CRLF in WebUserApp/content/less/body.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in WebUserApp/content/less/html-light.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in WebUserApp/content/less/top.css.

Can someone tell me what is causing these and how I can fix (if it needs to be fixed) the problem.

Alan2
  • 23,493
  • 79
  • 256
  • 450

1 Answers1

1

You can set the autocrlf option in your git config to false or input.

You can set the option when you edit your .git/config file in the global section or you use the git command line

git config --global core.autocrlf false

https://help.github.com/articles/dealing-with-line-endings/
Why should I use core.autocrlf=true in Git?

Community
  • 1
  • 1
René Höhle
  • 26,716
  • 22
  • 73
  • 82