git rm ALL files deleted files at once

The Problem

I’ve git add .ed all files, which does NOT include deleted files.

The Question

How do I add these deleted files, without calling git rm <filename> for each deleted file?


Try passing the --update or -u flag to update (stage odified or removed files):

git add -u 

If you really want to only stage the deleted files, run:

git rm $(git ls-files --deleted)

Source: Stack Overflow