This has happened twice due to a power outage, my Git index gets corrupted. I am using a repo in a Linux VM, hosted on a Windows 7 system. That repo is also the root project for IntelliJ. Git tells me "index file smaller than expected". How can I prevent the corruption again? Is it inherent of how my code base and workspace is set up?
It seems another user had a similar problem. Stackoverflow: http://stackoverflow.com/a/34534651