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 trialJason Zeall
7,860 PointsStuck here: Add the changes I made to index.html to the staging area? Was this covered in the lesson?
Though it "git add index.html" was adding the file, what about changes made to the staging area? Man, I'm confused.
5 Answers
Ricky Catron
13,023 PointsYou will have to run git commit in order to create a record of the work you have done in the file. Add tells git to keep track of the file but does not tell it what is in side.
I think a metaphor would be like handing someone a box and telling them to keep an eye on it without telling them what is inside.
Goodluck! --Ricky
Husam Almarrani
11,228 PointsI was stuck as well, but I tried: git add index.html, and it worked. I was trying git add "index.html" -m "some message" and it didn't work.
Jeremy Barbe
8,728 Pointsthe way the questions are worded in this service sometimes are confusing as !@$#%
Rodney Buljubasic
Courses Plus Student 13,899 PointsI here you, glad to know I am not alone in this!! :-)
Joyline Tope
7,650 Pointsstill not getting it... been 2hrs now
Ricky Catron
13,023 PointsDid you add the file and commit the file?
Bryan Ramirez
7,938 PointsI though it was commit as well but what they are looking for is --->
git add index.html
Jason Zeall
7,860 PointsJason Zeall
7,860 PointsThanks Ricky. I'm through.