Git add all files modified, deleted, and untracked?
Is there a way to add all files no matter what you do to them whether it be deleted, untracked, etc? like for a commit. I just don't want to have to git add or git rm all my files every time I commit, especially when I'm working on a large product. How git add deleted files?
To add all files, modified, deleted and untracked then you could use:
git add -A
Note:
Since git 2.0. The above command will stage all the files in the whole working tree.
If you need to stage the files in your current path you could use:
git add -A .
This will stage files in your current path.
Summary:
git add -A stages all changes
git add . stages the new files and modifications but not deletions.