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!

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 Basics Getting Started With Git The Staging Area

Arikaturika Tumojenko
Arikaturika Tumojenko
8,897 Points

git commit -m "Add new project files" - where was the comment added? I'm confused

While using git commit -m "Add new project files" on a SINGLE file we want to commit, I understand that the comment goes inside the file. What happened with the "Add new project files" comment? Where was it printed since Tommy commited multiple files?

And how was Tommy able to commit 2 files at the same time without using the -a flag?