Total Pageviews

2021/12/19

[Git] 執行 git add --all 出現 warning: CRLF will be replaced by LF in ...

Problem

當我執行 git add -all 時,出現以下警告訊息

warning: CRLF will be replaced by LF in XXX

The file will have its original line endings in your working directory.


 How-To

執行以下指令,即可解決上述 warning 訊息

git config --global core.autocrlf true
git config --global core.safecrlf true


No comments: