Let's say you try the following command :
$ git status
fatal: unable to write new_index file
One cause of this that I found was that my file system had run out of space. Finding large directories with something like the following helped clean up some log files that had run wild :
$ du -h / | grep ^[0-9.]*G