git
runtime_error
ai_generated
true
错误:'file.bin'是一个指针文件,不是实际内容。您是否忘记运行'git lfs pull'?
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
92%修复率
86%置信度
1证据数
2024-04-10首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| git-lfs 3.4.0 | active | — | — | — |
| git-lfs 3.5.0 | active | — | — | — |
| git-lfs 3.6.0 | active | — | — | — |
根因分析
Git LFS跟踪的文件在没有安装或启用LFS的情况下克隆,只留下了指针文件而没有实际的二进制内容
English
A file tracked by Git LFS was cloned without LFS installed or enabled, leaving only the pointer file instead of the actual binary content.
官方文档
https://github.com/git-lfs/git-lfs/wiki/Troubleshooting解决方案
-
Install Git LFS and pull the content: git lfs install && git lfs pull
-
If LFS is already installed, re-clone with LFS: git lfs clone https://github.com/user/repo.git
无效尝试
常见但无效的做法:
-
Manually deleting the file and re-cloning without installing LFS
95% 失败
Without LFS installed, the same pointer file will be created again
-
Running 'git checkout -- file.bin' thinking it will fetch the content
90% 失败
Checkout only restores the pointer file from the index, not the LFS content