git commit -a will transfer all files known to git:
-a,
If you want to make sure that you are doing everything you want, you can use git-status prior to git-commit to view the files that were set to commit.
git uses a two-step process to get changes from the working directory to the repository . An approach like git commit -a will work, but it will result in erratic, non-atomic commits. I would advocate smaller, focused commits, rather than using a generic approach like the one you're looking for.
That doesn't sound right, because I know that I (and many others) will forget to call git add ...
git-status is your friend :)
Note. git-add does not add files to the repository. git commit writes things from the staging area repository , not from the working area . It may seem strange at first, but it gives you much more flexibility. See the other answer for more information.
source share