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 trialTimothy Boland
18,237 PointsGit 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
Jonathan Hackworth
6,169 PointsSince 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"
MUZ141016 Lovemore Musekiwa
3,390 Pointsgit commit -m "message"
Timothy Boland
18,237 PointsTimothy Boland
18,237 Pointsawesome...thans Jonathan
Jim Withington
12,025 PointsJim Withington
12,025 PointsThanks! I was confused here, too.