Norman Percy
Norman Percy

Reputation: 1158

Pull ALL files from git LFS

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

Answers (3)

Sam R
Sam R

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

mbaker3
mbaker3

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

joydeba
joydeba

Reputation: 1245

Local git to retrieve the latest meta-data

git lfs fetch --all

Brings (copy) the changes from the remote repository

git lfs pull

Upvotes: 45

Related Questions