我正在尝试 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/