Search code examples
gitgithubgithub-for-mac

Git push hangs after writing a few files


I was trying to push a a 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


Solution

  • 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.