Hap*_*888 12
主要的解决方案是Windows默认使用CRLF,就像我的WebStorm一样.
1)第一步是改变WebStorm默认编码,如:
https://www.jetbrains.com/phpstorm/help/configuring-line-separators.html
2)并在状态栏上更改它
https://www.jetbrains.com/phpstorm/help/status-bar.html
保存!和
OKAY No lint warnings.
在您的终端或 cmd 提示符中运行它
git config core.autocrlf false
git rm --cached -r .
git reset --hard
Run Code Online (Sandbox Code Playgroud)
注意 - 确保您没有任何未提交的更改,否则它将被删除!
归档时间: |
|
查看次数: |
19486 次 |
最近记录: |