Skip to content

remote: fatal: pack exceeds maximum allowed size after migrate #3758

@albasili

Description

@albasili

I'd like to migrate some *.png files to LFS but I'm having the following error when I git push --force after the migration:

-bash-4.1$ git push --force Locking support detected on remote "origin". Consider enabling it with: $ git config lfs.https://gitlab.melexis.com/msde-bvx/msenv-90421.git/info/lfs.locksverify true Uploading LFS objects: 100% (713/713), 711 MB | 0 B/s, done Counting objects: 23191, done. Delta compression using up to 12 threads. Compressing objects: 100% (8846/8846), done. remote: fatal: pack exceeds maximum allowed size error: failed to push some refs to 'git@gitlab.melexis.com:msde-bvx/msenv-90421.git' 

The command I've run to migrate the files looks like this:
git lfs migrate import --include="*.png" --include-ref=refs/heads/some-branch

and I get the necessary filters activated in .gitattributes

-bash-4.1$ cat .gitattributes .gitignore export-ignore .gitlab-ci.yml export-ignore .gitmodules export-ignore .gitattributes export-ignore *.png filter=lfs diff=lfs merge=lfs -text 

Any idea whether I can do something about it? What I'm worried about is that I've rewrote my history locally, so I cannot really move on with this and I should clone back the repo if I want to use it (which is quite a pain on our large repos).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions