Git 中出现 ^M 解决方案

下面简单的方法可以让git diff的时候忽略换行符的差异: git config –global core.whitespace cr-at-eol 对于已经被修改的文件.使用dos2unix批量替换