在使用git中发现每次提交更改时会有:索引错误问题
Updating the Git index failed. A rescan will be automatically started to resynchronize git-gui.
warning: LF will be replaced by CRLF in main.py.
The file will have its original line endings in your working directory
原因在于window下的换行符为
,而Linux下的换行符为
,具体可见参考网页。
参考
理解 CRLF,LF