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

General Discussion

Timothy Boland
Timothy Boland
18,237 Points

Git Basics - Staging Our Changes - Code Challenge 5 of 6 - Now let's commit all the changes we made to the staging area.

ive tried entering each of the following but all our failing:

git commit -a git commit -a -m "Committing All Remaining Changes"

but it tells me Bummer! That was the wrong git command. Try again.

Is it a bug in the question, or am i doing it wrong

2 Answers

Since you have already added the changes you want to commit to the staging area, there is no need to commit all changes.

So you'll want to remove the -a flag, to ensure that just the changes in the staging area are committed.

git commit -m "xxx"

Thanks! I was confused here, too.

git commit -m "message"