After cloning, `model.bin` contains three lines starting with `version https://git-lfs.github.com/spec/v1` instead of the real file.
BeginnerTroubleshootingSubmodules, LFS and Hooks
Answer
Likely causes → You got the LFS pointer file. Git LFS is not installed, git lfs install was never run (no smudge filter configured), or the clone used GIT_LFS_SKIP_SMUDGE=1.
Diagnose →
git lfs version
git config --get filter.lfs.smudge
git lfs ls-files # "-" after the oid means pointer only, "*" means downloaded
Fix →
git lfs install
git lfs pull
In CI, enable LFS in the checkout (actions/checkout with lfs: true).
Prevent → Add git lfs install to the onboarding script and a CI check that fails if pointer files reach the build.
More on Submodules, LFS and Hooks
`fatal: No url found for submodule path 'libs/common' in .gitmodules`IntermediateAfter cloning, the submodule directories exist but are empty.Beginner`git submodule update` fails: `fatal: remote error: upload-pack: not our ref 3f2a9c1...` and `Fetched in submodule path 'libs/common', but it did not contain 3f2a9c1. Direct fetching of that commit failed.`Intermediate`git status` keeps showing `modified: libs/common (new commits)` even though you never touched it.BeginnerYou committed inside a submodule, ran `git submodule update`, and your commits vanished.Intermediate`git submodule add` fails with `fatal: 'libs/common' already exists in the index`.Intermediate