git runtime_error ai_generated true

error: 'file.bin' is a pointer file, not the actual content. Did you forget to run 'git lfs pull'?

ID: git/lfs-pointer-instead-of-content

Also available as: JSON · Markdown · 中文
92%Fix Rate
86%Confidence
1Evidence
2024-04-10First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
git-lfs 3.4.0 active
git-lfs 3.5.0 active
git-lfs 3.6.0 active

Root Cause

A file tracked by Git LFS was cloned without LFS installed or enabled, leaving only the pointer file instead of the actual binary content.

generic

中文

Git LFS跟踪的文件在没有安装或启用LFS的情况下克隆,只留下了指针文件而没有实际的二进制内容

Official Documentation

https://github.com/git-lfs/git-lfs/wiki/Troubleshooting

Workarounds

  1. 95% success Install Git LFS and pull the content: git lfs install && git lfs pull
    Install Git LFS and pull the content: git lfs install && git lfs pull
  2. 90% success If LFS is already installed, re-clone with LFS: git lfs clone https://github.com/user/repo.git
    If LFS is already installed, re-clone with LFS: git lfs clone https://github.com/user/repo.git

中文步骤

  1. Install Git LFS and pull the content: git lfs install && git lfs pull
  2. If LFS is already installed, re-clone with LFS: git lfs clone https://github.com/user/repo.git

Dead Ends

Common approaches that don't work:

  1. Manually deleting the file and re-cloning without installing LFS 95% fail

    Without LFS installed, the same pointer file will be created again

  2. Running 'git checkout -- file.bin' thinking it will fetch the content 90% fail

    Checkout only restores the pointer file from the index, not the LFS content