Git – How to add multiple files in git

gitgit-addterminalUbuntu

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.

Best Answer

git add .
git commit -m "message"
git push