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!
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
Jacob Roman22,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"
Patrick Donahue9,523 Points
What is the error message you are getting? Try leaving out the -a and just use -m.
Marcus RichardFront End Web Development Techdegree Student 10,124 Points
Here is what worked for me...git commit -m "message"
Ken Wilson7,885 Points
This does not work as you've indicated: git commit -m "Added index" git commit index.html -m "Added index"
Jay Norris14,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"