git lfs clone vs git clone git lfs clone vs git clone git git

git lfs clone vs git clone


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 updatedwith new flags from 'git clone''git clone' has been updated in upstream Git to have comparablespeeds 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.


git lfs clone essentially runs the following sequence of commands (see #1973):

$ GIT_LFS_SKIP_SMUDGE=1 git clone git@something.something.git$ cd something$ git lfs pull

Notice, git lfs clone has been deprecated since Git LFS 2.3.0 (see #2526). Simply, use git clone.


Cloning at light speed with git lfs clone

A new feature you definitely want to take advantage of if you have a very large repository, and especially if you're on Windows, is the specialized LFS clone command:

git lfs clone ssh://git@mybb-server.com:7999/lfs/repo.git my-clone

The git lfs clone command operates exactly like git clone and takes all the same arguments, but has one important difference: it's a lot faster! Depending on the number of files you have it can be more than 10x faster in fact.

Read through this article to understand behind the scenes of git lfs clone vs git clonehttps://developer.atlassian.com/blog/2016/04/git-lfs-12-clone-faster/