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 trial

Development Tools Git Basics Getting Started With Git Looking Back on What We've Done

Stuck 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

You 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

Thanks Ricky. I'm through.

I 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.

the way the questions are worded in this service sometimes are confusing as !@$#%

I here you, glad to know I am not alone in this!! :-)

still not getting it... been 2hrs now

Did you add the file and commit the file?

I though it was commit as well but what they are looking for is --->

git add index.html