git提交代碼報錯 trailing whitespace的解決方法


1. git提交代碼報錯 trailing whitespace

禁止執行pre-commit腳本

進入到項目目錄中

chmod a-x .git/hooks/pre-commit

2.git提交代碼報錯  error: RPC failed; HTTP 411 curl 22 The requested URL returned error: 411 Length Required
                              fatal: The remote end hung up unexpectedly,上傳的包過大導致。

vim .git/config

添加:

  1. [http]  
  2. postBuffer = 524288000  

 


免責聲明!

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



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