How to add multiple files in git

Stacy J picture Stacy J · Mar 21, 2013 · Viewed 9.8k times · Source

I have 4 files in a folder. I have modified 3 of them. How do I add and push only the modified files all at once. Will "git add ." work here.

Answer

Stuart M picture Stuart M · Mar 21, 2013
git add .
git commit -m "message"
git push