1. 程式人生 > >[Git add . ] 遇到The file will have its original line endings in your working directory 解決辦法

[Git add . ] 遇到The file will have its original line endings in your working directory 解決辦法

tor oba ngs conf lse pre line add pan

1.在新項目中使用[ git add . ]時出現:

warning: LF will be replaced by CRLF in ......  
The file will have its original line endings in your working directory.  

解決辦法為:

1 git config --global core.autocrlf false

2.出現上述原因為:

1 原因是路徑中存在 / 的符號轉義問題,false就是不轉換符號默認是true,相當於把路徑的 / 符號進行轉義,這樣添加的時候就有問題

完畢 !

[Git add . ] 遇到The file will have its original line endings in your working directory 解決辦法