028 You are about to commit CRLF line separators to the Git repository.It is recommended to set the core. autocrlf Git attribute to true to avoid line separator issues If you choose Fix and Comit , git config-global core. autocrlf true will be executed.If you choose Commit as Is , the config value won't be changed.Don't warn again
You are about to commit CRLF line separators to the Git repository.It is recommended to set the core. autocrlf Git attribute to true to avoid line separator issues If you choose Fix and Comit , git config-global core. autocrlf true will be executed.If you choose Commit as Is , the config value won't be changed.Don't warn again
參考:
使用IDEA提交代碼時提示You are about to commit CRLF line separators to the Git repository
git add . 的時候遇到warning: LF will be replaced by CRLF in ...... 解決辦法
解決方法:
git config --global core.autocrlf false
就可以解決了。
原因就是:
原因是路徑中存在 / 的符號轉義問題,false就是不轉換符號默認是true,相當於把路徑的 / 符號進行轉義,這樣添加的時候就有問題
貌似解決了,沒有再次報錯