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

Nigel Yoshida
5,957 PointsCommiting changes to staging area
I'm on task 5 that asks me to commit all the changes we made to the staging area. I am using git commit -a
but it keeps telling me that I'm using the wrong git command.
3 Answers

Ken Alger
Treehouse TeacherNigel;
For this task (Task 5 of 6) you need to add a message to the commit. That would utilize the -m
option and then you would add a message between quotes. So the command would be:
git commit -m "Your Message Here"
Ken

Ahmed Bohliqa
588 PointsI was using
git commit -a -m "some message"
, but it didn't work. Perhaps, the question need to be reworded to not say "all", or the it should be fixed to accept the all flag

piper piperian
8,958 Pointsagreed with the above comment. the task needs to be reworded. it seems to be asking that we do use git commit -a
Nigel Yoshida
5,957 PointsNigel Yoshida
5,957 PointsGotcha. Thanks so much!