I have a website project that has more than 50,000 unimportant files (to development) in some directories.
/website.com/files/1.txt /website.com/files/2.txt
Ignoring a whole directory didn't work. I had to do this:
for i in `git status | grep deleted | awk '{print $3}'`; do git update-index --assume-unchanged $i; done