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