Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Set up Git and Add Gems

Error when I hit ( git add . )

Hi, it returned an errrors when I ..

C:\Treehouse\Project\odot
λ git add .
warning: LF will be replaced by CRLF in .gitignore.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Gemfile.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Gemfile.lock.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in README.rdoc.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Rakefile.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in app/assets/javascripts/application.js.

....... What this error means and what to do to solve this. Thanks.

2 Answers

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,733 Points

This is an error some people find when using Git on a Windows machine.

Try writing this into your console (or command prompt):

git config --local core.autocrlf false

Then try your git add again. Let me know if this helps at all

Hi John, I got it. you solved my issue.
Thank you for your help.