在使用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下的换行符为\r\n,而Linux下的换行符为\n,具体可见参考网页。

参考
理解 CRLF,LF

相关文章:

  • 2021-05-26
  • 2022-12-23
  • 2022-01-15
  • 2021-10-23
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2021-07-23
猜你喜欢
  • 2021-04-29
  • 2022-12-23
  • 2021-10-12
  • 2021-12-26
  • 2022-01-15
  • 2021-11-20
  • 2021-07-01
相关资源
相似解决方案