Skip to content

How to remove the objects reference according to the hash? #4232

@aaaa-j

Description

@aaaa-j

Describe the issue
Sorry for opening an issue but I really need some help.

We already have a large repository(LFS>300G), but a lot large files are not tracked in LFS. And I am trying to git lfs migrate import those files.
However, I got errors when I tried to run git lfs fetch -all:
$ git lfs fetch --all fetch: 35658 object(s) found, done. fetch: Fetching all references... [5f3c4cb4bcfe815ceaff849ffdb19f85c2b067608fde04a98f037eeaf4ceea08] Object '5f3c4cb4bcfe815ceaff849ffdb19f85c2b067608fde04a98f037eeaf4ceea08' not found: [404] Object '5f3c4cb4bcfe815ceaff849ffdb19f85c2b067608fde04a98f037eeaf4ceea08' not found .......(more than 200 objects) error: failed to fetch some objects from 'http://xxxx.git/info/lfs'

When I pushed to another repository, I got same errors. I can't continue my work. T_T

I guess I need to remove the missing objects reference from history.

I have read some similar issues' solution, such as issue3245. But I'm still confused about what to do.

Wish for some advice!
Thanks a lot.

Output of git lfs env
git-lfs/2.9.2 (GitHub; windows amd64; go 1.12.7; git 0274d85)
git version 2.21.0.windows.1

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