git add -A
git add .
In version 2.x, git add .
will stage all changes to files in the current directory and all its subdirectories. However, in 1.x it will only stage new and modified files, not deleted files.
Use git add -A
, or its equivalent command git add --all
, to stage all changes to files in any version of git.