`git status` or a clone prints `Encountered 3 file(s) that should have been pointers, but weren't:`
IntermediateTroubleshootingSubmodules, LFS and Hooks
Answer
Likely causes → Files matching an LFS pattern in .gitattributes were committed as regular blobs, because the committer lacked LFS or the pattern was added after the files.
Diagnose →
git lfs fsck --pointers
git check-attr filter -- assets/logo.psd
Fix → Convert them in a new commit:
git add --renormalize .
git commit -m "Store tracked files in LFS"
To also clean history: git lfs migrate import --include="*.psd" --everything and force-push.
Prevent → Add .gitattributes patterns before adding files, and run git lfs fsck --pointers in CI.
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