写入对象时Git挂起 [英] Git hangs while writing objects
本文介绍了写入对象时Git挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图 git push -u origin master
它只是挂在
写作对象:99%(219/220),12.65 MiB | 97 KiB / s
它从未被成功推送过。这是最初的提交。
解决方案
这是因为repo目录中有巨大的无版权文件。哎呀。
编辑
挂起是因为该文件需要很长时间才能上传。该文件不应该包含在推送中。
I'm trying to git push -u origin master
And it just hangs at
Writing objects: 99% (219/220), 12.65 MiB | 97 KiB/s
The 12.65
part shifts around. When I exit the process and run it again, it resumes at 99% but never finishes, same as before.
It's never pushed successfully. This is the initial commit.
解决方案
This was happening because of huge, unignored file in the repo directory. Whoops.
EDIT
The hang was because the file was taking a long time to upload. The file wasn't supposed to have been included in the push.
这篇关于写入对象时Git挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文