Skip to content

Solution to Encountered XX files that should have been pointers, but weren’t

Description

This error message indicates an issue with Git Large File Storage (LFS). It means Git found XX files that should be tracked by LFS (using pointers instead of storing the entire file content in the Git repository) but weren’t. This can happen for a few reasons.

Solution

Here’s how to troubleshoot:

git rm --cached -r .
git reset --hard

In essence, this command removes all files tracked by Git from the staging area, but they will still be present in your working directory.
By running git reset –hard after git rm –cached -r ., you are essentially discarding all changes you’ve made to tracked files since the last commit.

Leave a Reply