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 trialMatt Bloomer
10,608 Pointsgit commit
I have rewatched the videos and am still confused about when one is supposed to use git commit -a -m message as opposed to just git commit -m message. Can someone explain this a little more for me and possibly give some examples?
1 Answer
Lukas Hansen
11,323 PointsI'm actually in a somewhat similar situation. This is only a guess, but i think you need to use 'git add' to add your files, and later on when you change the content of those files, you can add them again using 'git add', or use the -a flag. In short, its a way to add changed content, but not new files.