Perforce to Git Migration : Error | Pack exceeds maximun allowed Size

Hi,

We are migrating our codebase from perforce to Git. We are having a single commit which is more than 2GB.
It is failing with error “Pack exceeds maximun allowed Size”.

remote: fatal: pack exceeds maximum allowed size
fatal: the remote end hung up unexpectedlyGiB | 2.75 MiB/s
fatal: sha1 file ‘<stdout>’ write error: Broken pipe
fatal: the remote end hung up unexpectedly

We ran the command to check the size of the pack which around 2.62GiB.

>> count-objects -Hv
count: 1
packs: 1
size-pack: 2.62 GiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes

We did enable LFS before pushing to Git.

is there a way to increase the 2GB quota or any other solution to resolve this issue.

Thanks,

Sangamesh

Hi @sangameshgouriflexer,

Thanks for being here! Currently, it’s not possible to push more than 2GB to GitHub.com at a time. For cases like this, we recommend pushing the repository up in ‘chunks’ of commits:

git push <remotename> <commit SHA>:<remotebranchname>

``

This command will push up to and including all commits before the commit specified in the command. I suggest running git log --pretty=oneline and choosing a commit half way or so down the list. Once this is pushed you should be able to run another git push to add the rest of the commits depending on the total size of the pushes.

I hope this helps! 

Hello @andreagriffiths11
I have the same situation:

count: 0
size: 0 bytes
in-pack: 46776
packs: 2
size-pack: 3.91 GiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes

I’m moving from Bitbucket to here doing a git push --all.

If I do log --pretty=oneline I got a very large log. Initially the most recent.
How I do the split in several git push <remotename> <commit SHA>:<remotebranchname>

Thanks