通过命令git diff查看修改,出现^M换行问题,如图:
解决:
git config --global core.whitespace cr-at-eol
换行符的问题:
提交时转换为LF,检出时不转换
git config --global core.autocrlf input
通过命令git diff查看修改,出现^M换行问题,如图:
解决:
git config --global core.whitespace cr-at-eol
换行符的问题:
提交时转换为LF,检出时不转换
git config --global core.autocrlf input
转载于:https://www.cnblogs.com/quan-coder/p/10431828.html