Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Ricky Catron
Ricky Catron
13,023 Points

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.

Husam Almarrani
Husam Almarrani
11,228 Points

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.

Jeremy Barbe
Jeremy Barbe
8,728 Points

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

Ricky Catron
Ricky Catron
13,023 Points

Did you add the file and commit the file?

Bryan Ramirez
Bryan Ramirez
7,938 Points

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

git add index.html