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 trialJonathan Musso
3,760 PointsGIT 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
18,033 Pointsthe -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.
Dan Johnson
9,385 PointsShouldn't git commit -am "some message"
also be a valid answer?
geoffrey
28,736 PointsIt should be considered as valid but the exercise doesn't valid it....
Jonathan Musso
3,760 PointsJonathan Musso
3,760 PointsAaron 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
18,033 PointsAaron Graham
18,033 PointsJonathan Musso - You are really close. The -m flag needs to be followed by the message. Try this:
git commit -a -m "some changes"
Jonathan Musso
3,760 PointsJonathan Musso
3,760 PointsThank you! By message I thought you were talking about the string.
Aaron Graham
18,033 PointsAaron Graham
18,033 PointsJonathan Musso - Any time! I guess I could have been more clear. Glad you got it!