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 trialTammy Burke
9,720 PointsWhy is git commit -a README.md not the correct answer to the quiz question number 2? I am absolutely stumped.
Why??? What???
2 Answers
wuworkshop
3,429 PointsI just went through the challenge to see what it's asking, and for the second challenge they just want you to commit the README.md file along with a commit message. To do that, you type this:
git commit -m "Add README.md"
You already added the README.md file in the first challenge question so you don't need to use the -a
flag. The -m
flag is when you want to include your commit message.
And just as a hint for the last challenge question, you will need BOTH flags. :)
Tammy Burke
9,720 PointsThank you for your help. I only just realized that when you get one wrong, there's a hint. :)
Tammy Burke
9,720 PointsTammy Burke
9,720 PointsFrom googling and trial and error, I got the answer right. Erhhgh.