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.
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).
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With