bulk delete in GIT?

git

Solution

`git add -u` will stage all changes to all tracked files, including deletes.

If you have changes that aren't deletes that you don't want to stage you have to do something like:

git diff --name-only --diff-filter=D -z | xargs -0 git rm --

Problem

If I manually go into windows explorer and delete a bunch of files, is there any way to bulk commit the change? I believe even after doing a : git add . it still tells me I have to do a: git rm /path/to/file Which will be a bit annoying if I have tons of files to delete?

Original source