git - remove already deleted files

To remove files that were already deleted on the file system, run git add with -u flag:

git status
D abc.c

git add -u

This tells git to automatically stage tracked files - including deleting the previously tracked files.

Stackoverflow: How do I commit all deleted files in Git?

profile for Boris Serebrov on Stack Exchange, a network of free, community-driven Q&A sites