Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git lfs clone vs git clone

Tags:

If I have git lfs installed on the client and I run:

git clone 

is this equivalent to

git lfs clone 

or will different results occur?

Thank you!

The answer to this question:

Can one clone a Git LFS repo without installing Git LFS?

seems to imply that git clone will work if you have git lfs installed. It isn't clear if this means that the two commands will work the same. Unfortunately my reputation is too low to comment and ask.

like image 683
Fresh Codemonger Avatar asked Jan 23 '18 00:01

Fresh Codemonger


People also ask

What is the difference between git and git LFS?

Git LFS is a Git extension used to manage large files and binary files in a separate Git repository. Most projects today have both code and binary assets. And storing large binary files in Git repositories can be a bottleneck for Git users. That's why some Git users add Git Large File Storage (LFS).

How do I clone a git repository with LFS?

Once Git LFS is installed, you can clone a Git LFS repository as normal using git clone . At the end of the cloning process Git will check out the default branch (usually main ), and any Git LFS files needed to complete the checkout process will be automatically downloaded for you.

Does everyone install git LFS?

You have to have the Git LFS client installed in order for its filter programs to be invoked by Git, check for locks, and report their existence. Otherwise it's just a normal Git repo underneath.

Can I use git LFS with GitHub?

After you configure Git LFS to track files in a repository, you can seamlessly access and manage large files with GitHub Desktop like any other file in the repository.


1 Answers

I updated the git client from 2.10.0 to 2.16.1 and it now says:

WARNING: 'git lfs clone' is deprecated and will not be updated with new flags from 'git clone'  'git clone' has been updated in upstream Git to have comparable speeds to 'git lfs clone'. 

I suppose the answer is that git lfs clone is now pretty much the same thing as git clone and the separate command will disappear.

like image 196
Fresh Codemonger Avatar answered Sep 22 '22 11:09

Fresh Codemonger