Git: Checkout all files except one
git add dir/C/file.txt # this file will stay modified and staged
git checkout .
If you want to unstage the file after that:
git reset
git add dir/C/file.txt # this file will stay modified and staged
git checkout .
If you want to unstage the file after that:
git reset