Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How git lfs clone is difference from git shallow clone

Tags:

git

git-lfs

git lfs will only download the latest version of binary files to the local repo. However, git shallow clone downloads the latest version of all the files(source + binary).

If storage is not a concern, we can use git shallow clone over git lfs?

like image 923
Yashwanth Avatar asked Nov 28 '25 23:11

Yashwanth


1 Answers

You could.

But since Git lfs 2.2.0 (May 2017), you can also use --shallow-since in your git lfs clone command (issue 2250).

That would combine both.

like image 72
VonC Avatar answered Nov 30 '25 12:11

VonC