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 trialBrett Carter
Full Stack JavaScript Techdegree Graduate 17,766 PointsUnable to pass Git basics challenge question re: commit
I think the correct answer is "git commit -a -m" to pass all changes and the message. I've also tried "git commit README.md -m" and "git commit README.md -a -m" without success.
1 Answer
Brett Carter
Full Stack JavaScript Techdegree Graduate 17,766 PointsApparently when you click "get help" your question isn't automatically linked to the code challenge you are working on.
This question was referring to "Git Basics - Commitment Therapy, Challenge Task 2 of 3". The error code being generated was said I was missing the -m command (which I wasn't).
I successfully passed the question by including a short "commit message" after my command.
Here is the full command which successfully passed the question:
git commit -a -m "commit message"
Steven Parker
231,248 PointsSteven Parker
231,248 PointsWhen I tried it, it says the argument to -m is missing (the argument being the message).