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