Skip to Content

Fix Git LFS pointers issue

Learn how to fix Git LFS pointers issue

karchunt

Kar Chun Tan

Creator

Metadata

Fri Mar 28 2025

1 min read

93 words

Steps to fix Git LFS pointers issue

git lfs migrate import --no-rewrite "file_path" "file_path" git lfs ls-files | grep "file_path" git lfs push origin --all git push origin --all

Basically, the first comand is to reimport back those files into pointer files in LFS, without writing the history. Do take note that you can include as many file_path as you can.

Next, the second command is to help us to check whether the file_path already been imported as Git LFS pointers files.

Lastly, we just need to push back the LFS files and the contents to the repository itself.

Last updated on