In Git 2.x:
If you are located directly at the working directory, then git add -A
and git add .
work without the difference.
If you are in any subdirectory of the working directory, git add -A
will add all files from the entire working directory, and git add .
will add files from your current directory.
And that's all.