Any difference between git add . and git add –all?

git add --all will add the deleted file too (removing files from index that are no longer in the working tree), while git add . does not.

For new files and files already tracked in current working tree:

git add .

For only files already tracked in current working tree:

git add -u

For new files, files already tracked in current working tree, and remove files from index that are no longer in the working tree:

git add -A

or

git add --all

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)