Git 在写入对象时挂起

标签 git

我正在尝试 git push -u origin master 它只是卡在

Writing objects:  99% (219/220), 12.65 MiB | 97 KiB/s

12.65 部分左右移动。当我退出该进程并再次运行它时,它会以 99% 的速度恢复,但从未完成,与之前一样。

一直没有推送成功。这是初始提交。

最佳答案

我听从了 VonC 的建议:

git config --global http.postBuffer 524288000

供将来引用,基于评论:

500 MB: 524288000 (as posted in the original answer)
1 GB: 1048576000
2 GB: 2097152000 (anything higher is rejected as 'out of range')

关于Git 在写入对象时挂起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6887228/

相关文章:

Git 扩展 + Git Windows : Fetching Branch that does not exist Locally does not Create New Local Branch

git - git cherry-pick 的 TFVC 中的等价物是什么

git - Jenkins 未能从 GitHub 获取私有(private)仓库

ruby-on-rails - Rails代码共享: gem vs plugin vs submodule?

git grep 仅在未跟踪的文件中

git - 使用 git-tfs rcheckin 将 git 提交到 TFS 变更集的一对一映射

git - 如何使用Git在不同的平台上有不同的工作目录结构?

git - git打开文件的命令

git - Mingw+msys2 : Failed to connect to bitbucket. org : 网络不可达

git - 如果 merge 两个具有相同提交的分支会发生什么?