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 ,


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

mark

參考:

使用IDEA提交代碼時提示You are about to commit CRLF line separators to the Git repository

git add . 的時候遇到warning: LF will be replaced by CRLF in ...... 解決辦法

mark

解決方法:
git config --global core.autocrlf false

就可以解決了。

原因就是:

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

mark

貌似解決了,沒有再次報錯


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM