Home > database >  Retrieve original files after a git clone with git lfs
Retrieve original files after a git clone with git lfs

Time:07-04

I am a bit confused. I back up a project with Github.com. Because my files are too large to store them on Github.com, I am using git large file storage. Now I changed to a new computer, and performed a git clone on the repository stored remotly on Github.com. I also installed git lfs with brew and did a git lfs install in the just cloned repository. However, my large files are still "pointer files". When I run my project,it says, these files are missing.

I did a

git lfs fetch --all

which downloaded something. But where is it? How do I retrieve the files I backed up with git lfs after moving to a completly new computer with a fresh setup?

CodePudding user response:

Do a

git lfs checkout 

followed by

git lfs fetch

This replaces the pointer files with the original files.

  • Related