为什么会收到“已弃用git lfs克隆”的警告?

问题描述

运行此命令时:

git lfs clone https://github.com/Unity-Technologies/FPSSample.git

我收到此消息:

警告:不建议使用“ git lfs clone”,并且不会使用“ git clone”中的新标志进行更新 'git clone'已在上游Git中进行了更新,使其具有可比性 加快“ git lfs clone”的速度。

这是什么意思,我该怎么办?

解决方法

这只是告诉您git lfs clonedeprecated,您只能使用

git clone 

代替较新的git版本,它会自动下载LFS链接对象,前提是您的设备上已安装LFS。

如果您以前从未做过,那应该足以运行一次

git lfs install --skip-repo

在您计算机上的某个位置,然后git clone