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 Git Basics Getting Started With Git Committing Changes

Why is git commit -a README.md not the correct answer to the quiz question number 2? I am absolutely stumped.

Why??? What???

From googling and trial and error, I got the answer right. Erhhgh.

2 Answers

I 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. :)

Thank you for your help. I only just realized that when you get one wrong, there's a hint. :)