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

Jacob Roman
Jacob Roman
22,640 Points

And now that it's been added to the repository, let's commit it. Quiz

I am seem to be stuck on this, not sure if its a bug or I am missing something. Its the final quiz for getting started with Git. I get to the third question and we have to commit the index.html file that was just added. For some reason no matter what i type it wont show a correct answer. I have typed the following.

git commit -a -m "Added index" git commit index.html -m "Added index"

Any help?

6 Answers

Patrick Donahue
Patrick Donahue
9,523 Points

What is the error message you are getting? Try leaving out the -a and just use -m.

Jacob Roman
Jacob Roman
22,640 Points

That worked. it doesnt like the -a

Thanks!

great indeed

Ken Wilson
Ken Wilson
7,885 Points

This does not work as you've indicated: git commit -m "Added index" git commit index.html -m "Added index"

Jay Norris
Jay Norris
14,824 Points

It doesn't like the single quotes. This did not work for me: $ git commit -m 'Added a readme file'

but this did: $ git commit -m "Added a readme file"

This answer worked for me:

$ git commit -m "Added a readme file"