Search code examples
gitubuntuterminalgit-add

How to add multiple files in git


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.


Solution

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