Welcome to the Treehouse Community
Looking to learn something new?
When to use -a in commit?
When should I use -a in commit and when i should not use it?
In other words, what is the difference between:
git commit -a -m "comment"
git commit -m "comment"
Michael Hulet47,842 Points
-a flag tells git to commit all the changes it finds. It essentially allows you to skip ever running
Mathew Kurian4,698 Points
I had this same question also. So if you create 5 new files and then run "git commit", does it just add all the files?