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.

Development Tools

GIT QUIZ: We just made some more changes to that same README.md file - go ahead and commit those changes. Is this a bug?

We just made some more changes to that same README.md file - go ahead and commit those changes.

I am entering :

> git commit -a -m README.md "some changes"

And I keep getting this error.

"Bummer! Remember to put your commit message in quotes."

2 Answers

Aaron Graham
Aaron Graham
18,033 Points

the -a flag adds all the files that have changed to the commit. The -m flag should be immediately followed by your message. Try leaving out the README.md part of your command.

Aaron Graham I just tried that.

git commit -a "some changes" -m

returned

Bummer! Remember that we want to commit all of the changes we made to tracked files; there's a flag for that. And don't forget a commit message!

Aaron Graham
Aaron Graham
18,033 Points

Jonathan Musso - You are really close. The -m flag needs to be followed by the message. Try this:

git commit -a -m "some changes"

Thank you! By message I thought you were talking about the string.

Aaron Graham
Aaron Graham
18,033 Points

Jonathan Musso - Any time! I guess I could have been more clear. Glad you got it!

Shouldn't git commit -am "some message" also be a valid answer?

geoffrey
geoffrey
28,724 Points

It should be considered as valid but the exercise doesn't valid it....