git diff查看修改,出现^M换行问题


通过命令git diff查看修改,出现^M换行问题,如图:


 

解决:

git config --global core.whitespace cr-at-eol

  

换行符的问题:

提交时转换为LF,检出时不转换

git config --global core.autocrlf input

 


posted @ 2019-02-25 16:54  裸奔的太阳  阅读(4984)  评论(0编辑  收藏  举报