Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDavid Ho
1,482 PointsError 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
Courses Plus Student 11,734 PointsThis 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
David Ho
1,482 PointsHi John,
I got it. you solved my issue.
Thank you for your help.
John Steer-Fowler
Courses Plus Student 11,734 PointsGlad it worked. Keep up the good work :D