Staging Deleted files
Use git rm foo to stage the file for deletion from the file system to be restored from git.
Use git rm –cached foo file for deletion without deleting it from the file system.
git add -u:
Erase multiple files, without doing git rm
Manually deleted files:
git rm $(git ls-files --deleted)
This command as git rm-deleted
git config --global alias.rm-deleted '!git rm $(git ls-files --deleted)'