简体   繁体   中英

Git push hangs after writing a few files

I was trying to push aa branch but it hangs after writing 82% of the objects. 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. what is the problem?

Writing objects: 82% (72/87), 4.09 MiB | 89 KiB/s

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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