其他, 原创

git提交代码出错RPC failed; result=22, HTTP code = 411解决方法

今日 在使用git 提交代码的时候 提示

POST git-receive-pack (chunked) fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly error: RPC failed; result=22, HTTP code = 411 Pushing to https://git.duapp.com/appid834ne9u4y9 Everything up-to-date

这个错误的的产生是 git配置 http的 postBuffer 太小导致的,解决方法,提交前先运行下面的命令

git config –global http.postBuffer 524288000

再次提交代码,发现成功提交了。

git commit 代码时提示:

Warning: Your console font probably doesn‘t support Unicode. If you experience trange characters in the output, consider switching to a TrueType font such as ucida Console!

这是代码中含有中文导致的,且把代码改为utf-8也是解决不了的,查询了很多资料,最后终于解决啦,现分享给大家:

依次执行以下命令:

git config --global core.quotepath off
git config --global --unset i18n.logoutputencoding
git config --global --unset i18n.commitencoding

再次git commit和git push应该就不会弹出这个note了。

(5559)

Related Post