“Will not add file alias 'samefile' ('SameFile' already exists in index)” when `git add/commit` operation

从远程仓库pull下来的代码有两个类类名首字母小写出现如下情况

然后我想删了重新写一下(就是把这个类删了,代码复制到名字正确的类里面),然后commit的时候出现这个错误,后来删一个commit一下,就可以commit,暂时估计是删了之后commit把原先index里面的清空了
原文地址:https://www.cnblogs.com/vinozly/p/4964163.html