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 Basics Getting Started With Git The Staging Area

Nigel Yoshida
Nigel Yoshida
5,957 Points

Commiting 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
STAFF
Ken Alger
Treehouse Teacher

Nigel;

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

Nigel Yoshida
Nigel Yoshida
5,957 Points

Gotcha. Thanks so much!

Ahmed Bohliqa
Ahmed Bohliqa
588 Points

I 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

agreed with the above comment. the task needs to be reworded. it seems to be asking that we do use git commit -a