Here is a partial solution:
-
Resolve all non deleted merge conflicts by hand, which you have to do anyway
-
Type
git diff --name-only --diff-filter=Uto get a list of all remaining files in conflict. These files must be the ones you want deleted. Save the list of removed files asfilesToRemove.txt -
Then do
cat filesToRemove.txt | xargs git rmto remove all the files.