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

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"