I have setup Git so it doesn\'t commit inconsistent line endings. The problem with that is a whole pile of files appear modified even though they are not. What do I type to
You can just delete and re-checkout the offending files from the index like this:
rm
git checkout --
Or, if they are the only modified files (be careful with this command), you can script it like this:
git diff --name-only --diff-filter=M | xargs rm --
git checkout -- .
On a GNU system you can use a slightly safer pipe, but you don't appear to have spaces or other delimiting characters in your filenames in any case.
git diff -z --name-only --diff-filter=M | xargs -0 rm --