Eclipse + Git: Failed to add resource to index

Eclipse+EGit,
在使用Team->Add to Index 的时候,发生错误:
Failed to add resource to index
    Failed to add resource to index
    Exception caught during execution of add command


解决办法:
找到该Project所在目录,然后进入.git文件夹,用记事本类程序打开config文件,
在core下添加一行:
autocrlf = false


然后问题解决.

你可能感兴趣的:(resource)