Git add
Published: Updated:
Reminder about the difference between git add . and git add -A command.
git add .
The above command will stage all new files and the changed ones apart the deleted ones.
git add -A
The above command will stage all new files and the changed one and will delete the deleted files.
On the other hand
git add -u
will track all the already tracked files and stage the changes but will not stage any new files.