解决 contents have differences only in line separators
试了一些更改line separators格式没啥作用,还是油管好。
可能的原因是你签出(checkout)代码后,行分隔符(line separator)格式发生了变化,且之后未执行 git reset 操作。
提示:在操作前最好提交代码或备份,留空闲时间处理这个小问题。
操作:删除项目根目录下的.git/index,然后重置 Git 索引
cd project_name
rm .git/index
git reset
参考:
Intellij with git - Contents have differences only in line separators
