Git — 關於 LF will be replaced by CRLF 問題出現的原因以及解決方式
Git的時候遇到了這個問題:
輸 入 git add .後出現
解決方法:
git config --global core.autocrlf false
就可以解決了。
原因就是:
Windows中換行符為CRLF,而Linux換行符是LF,git預設是CRLF,若發現專案有LF,就會彈出警告了,最終push就會統一轉成CRLF作為換行符。false就是不轉換符號,預設是true。
當然這問題不會有影響,可以忽略。
相關文章
- 關於 LF will be replaced by CRLF 問題出現的原因以及解決方式
- 關於 LF will be replaced by CRLF 問題的解決方式
- fatal: LF would be replaced by CRLF 問題解決
- [git] warning: LF will be replaced by CRLF | fatal: CRLF would be replaced by LFGit
- window下的git [GIT] warning: LF will be replaced by CRLF問題解決方法Git
- warning: CRLF will be replaced by LF in 出現的原因和解決辦法
- git警告LF will be replaced by CRLFGit
- git add .出現錯誤LF will be replaced by CRLF in 解決辦法Git
- [git]warning: LF will be replaced by CRLF in 解決辦法Git
- git warning: LF will be replaced by CRLF in 解決辦法Git
- warning: LF will be replaced by CRLF in ** 的原因及解決辦法
- 關於git提示“warning: LF will be replaced by CRLF”終極解答Git
- LF will be replaced by CRLF
- GIT 提交錯誤 fatal: LF would be replaced by CRLFGit
- GIT 提交異常 fatal: LF would be replaced by CRLFGit
- GIT add檔案報錯:git warning: LF would be replaced by CRLF 解決方案Git
- AndroidStudio Git提交程式碼報錯LF would be replaced by CRLF的解決方案AndroidGit
- Git錯誤fatal: CRLF would be replaced by LF in xxxGit
- 在Windows下使用git時出現 warning: LF will be replaced by CRLF in xxx.WindowsGit
- 記錄 warning: CRLF will be replaced LF by in XXX 的解決辦法
- Git:warning: CALF wilL be replaced by LF in xxxx 問題解決Git
- git警告之——warning: LF will be replaced by CRLF in src/views/study/explain.vueGitViewAIVue
- IDEA使用git報錯LF would be replaced by CRLF in .gitignore (moments ago)IdeaGitGo
- git提交程式碼時,一直報出“fatal: LF would be replaced by CRLF in (檔名)”的異常Git
- 理解 CRLF,LF
- 關於網路硬體配置出現問題,無法上網問題的解決
- 關於論壇的設計方式以及快取新增的問題?快取
- git 遇到的錯誤以及解決方式(持續更新...)Git
- 常見的HTTP介面超時問題出現原因及解決辦法HTTP
- 深度揭祕亂碼問題背後的原因及解決方式
- 關於git的ssh-key:解決本地多個ssh-key的問題Git
- git ssl 問題解決Git
- 解決Hexo關於圖片的問題Hexo
- 關於解決問題的幾個段位
- 關於Failed to resolve的問題解決AI
- 怎樣成為解決問題的高手?——關於問題解決的關鍵4步驟
- 解決Ubuntu配置nginx出現的問題UbuntuNginx
- 使用Notepad轉換LF與CRLF