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 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

If you want to commit all files with a message, you can use the shorter syntax

git commit -am "my message"

deckey
deckey
14,630 Points

Hi John, usually you just git commit with -message flag, and then git push with -all flag. Try that instead

Good luck, Deckey

No, 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.

you are awesome Deckey!

deckey
deckey
14,630 Points

Haha, 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
jason chan
31,009 Points

those are github commands.

That just short hand for git all files and comment all. Commit just means confirm everything is good to go.