简体   繁体   English

写入一些文件后,Git push挂起

[英]Git push hangs after writing a few files

I was trying to push aa branch but it hangs after writing 82% of the objects. 我试图推动aa分支,但是在写入82%的对象后它挂了。 It doesn't proceed to write anything after 72 of 87 files but the corresponding file size increases and eventually exceeds the size of the whole project. 在87个文件中的72个之后,它不会继续写任何东西,但是相应的文件大小会增加,并最终超过了整个项目的大小。 what is the problem? 问题是什么?

Writing objects: 82% (72/87), 4.09 MiB | 书写对象:82%(72/87),4.09 MiB | 89 KiB/s 89 KiB /秒

As you noted in the comments there is a video in the commit history. 正如您在评论中指出的那样,提交历史记录中有一个视频。 Any commit with the video is going to be huge, but should only need to be pushed once. 视频的任何提交都将是巨大的,但只需推送一次即可。 If you're okay with that then I would just wait for the push to complete. 如果您对此表示满意,那么我将等待推送完成。

If you need to remove it you'll have to rewrite your history to not contain the video. 如果您需要删除它,则必须重写历史记录以不包含视频。 This answer has instructions on how to do this. 此答案包含有关如何执行此操作的说明。 You can use rebase if there are only a few commits, if not you should use git filter-branch . 如果提交的次数很少,则可以使用rebase;否则,可以使用git filter-branch

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

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