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 trialJohn Miller
4,007 Pointsgit commit -a -m "updates" / git commit -a should work
Instruction says "Now let's commit all the changes we've made to the current repository"
I don't understand what either of those commands do not work. Please help
7 Answers
Mattea Turnbull
4,134 PointsIf you want to commit all files with a message, you can use the shorter syntax
git commit -am "my message"
Rasbin Rijal
Courses Plus Student 10,864 PointsHi John,
I don't see any links to the challenge in your post. I found a detailed forum post about commiting all changes here . Check this out.
deckey
14,630 PointsHi John, usually you just git commit with -message flag, and then git push with -all flag. Try that instead
Good luck, Deckey
John Miller
4,007 PointsNo, I'll try it now, although I am finding the commit rather confusing. It just seems to me I should not get an error when specifying the "file" or "files" I am committing and although there is a specific '-a' option, it appears to be the default anyway
Still wrapping my head around this.
John Miller
4,007 Pointsyou are awesome Deckey!
deckey
14,630 PointsHaha, glad it worked and thanks for the compliment John :)
This link helped me getting my head around git workflow properly, maybe it will work for you too:
https://guides.github.com/activities/hello-world/
Good luck!
jason chan
31,009 Pointsthose are github commands.
That just short hand for git all files and comment all. Commit just means confirm everything is good to go.