简体   繁体   English

git 推送挂起(永远)并且 git-remote-https 使用 99.5% CPU

[英]git push hangs (forever) and git-remote-https uses 99.5% CPU

I'm trying to git push a small project (712kb not taking into account the .git folder) to a new repo, hosted on Google Source Repositories, and the push never finishes.我正在尝试将git push一个小项目(712kb 不考虑.git文件夹)到托管在 Google Source Repositories 上的新存储库,并且推送永远不会完成。 It stops right after printing the Total message (hangs for at least hours).它在打印Total消息后立即停止(挂起至少几个小时)。

Enumerating objects: 77, done.
Counting objects: 100% (77/77), done.
Delta compression using up to 8 threads
Compressing objects: 100% (71/71), done.
Writing objects: 100% (77/77), 131.62 KiB | 6.93 MiB/s, done.
Total 77 (delta 12), reused 0 (delta 0)

The only workaround was to split the commit into two smaller commits (no specific files need to be separated into the second commit; any random files do the trick).唯一的解决方法是将提交拆分为两个较小的提交(不需要将特定文件分离到第二个提交中;任何随机文件都可以解决问题)。 This confirms that it's not an auth issue.这证实这不是身份验证问题。 But it's not a real solution .但这不是真正的解决方案

None of the answers I've found fix the issue.我找到的答案都没有解决这个问题。 I'm mainly referring to:我主要指的是:

I'm looking for other ideas to identify a proper solution to this issue.我正在寻找其他想法来确定此问题的适当解决方案。

Maybe you could try to lower the size of http.postBuffer instead of increasing it.也许您可以尝试降低http.postBuffer的大小而不是增加它。 I remember it did the trick for me when I faced the same problem我记得当我遇到同样的问题时它对我有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM