通过命令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
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。