Reputation: 1158
Is it possible to locally cache ALL files in a git-LFS repo for offline use? That is, make the repo usable like a normal git repo, even without an internet connection to fetch git-LFS files?
Upvotes: 78
Views: 114926
Reputation: 210
I needed to combine an answer with research from a comment to do what I wanted: actually download the files and get them in their actual forms (so, e.g., I could open image files).
git lfs fetch --all
git lfs pull
git lfs checkout
Upvotes: 1
Reputation: 1193
Yes! You can download all LFS files with the following command:
git lfs fetch --all
Check out the documentation for this feature here: man git-lfs-fetch
Upvotes: 94
Reputation: 1245
git lfs fetch --all
git lfs pull
Upvotes: 45