When you add a file, it's marking that as a file that you will commit once you run the git commit command. A shortcut to add all modified files automatically is to commit with git commit -a. Another shortcut if you are adding multiple new files at the same time is to run git add -A.