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 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,736 Points

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