删除.git/index文件再执行:
git reset
不行的话就执行:
git read-tree --empty
https://stackoverflow.com/questions/21365714/nodejs-error-installing-with-npm
git :error: bad signature fatal: index file corrupt
原文:http://www.cnblogs.com/alan2kat/p/7777563.html