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 trialJacob Roman
22,640 PointsAnd 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
9,523 PointsWhat is the error message you are getting? Try leaving out the -a and just use -m.
Marcus Richard
Front End Web Development Techdegree Student 10,124 PointsHere is what worked for me...git commit -m "message"
Emily Easton
13,575 PointsThis worked for me too
Patrick Donahue
9,523 PointsNo problem!
Ken Wilson
7,885 PointsThis does not work as you've indicated: git commit -m "Added index" git commit index.html -m "Added index"
Jay Norris
14,824 PointsIt 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"
roses
5,585 PointsThis answer worked for me:
$ git commit -m "Added a readme file"
Jacob Roman
22,640 PointsJacob Roman
22,640 PointsThat worked. it doesnt like the -a
Thanks!
MUZ140149 Ordain Gotore
4,644 PointsMUZ140149 Ordain Gotore
4,644 Pointsgreat indeed