【发布时间】:2020-11-29 19:07:56
【问题描述】:
我正在尝试使用命令克隆一个 git 存储库:
git clonerepo test_simrkaur
但是得到这个错误:
[simrkaur@bhlinb40 Repos]$ git clonerepo test_simrkaur
Cloning into 'test_simrkaur'...
remote: Counting objects: 2, done
remote: Total 431 (delta 0), reused 431 (delta 0)
Receiving objects: 100% (431/431), 128.85 KiB | 0 bytes/s, done.
Resolving deltas: 100% (74/74), done.
Checking connectivity... done.
git-lfs smudge -- 'testlfs.txt': git-lfs: command not found
error: external filter git-lfs smudge -- %f failed -1
error: external filter git-lfs smudge -- %f failed
fatal: testlfs.txt: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
我尝试运行命令 'git checkout -f HEAD' 但仍然收到错误:
[simrkaur@bhlinb40 test_simrkaur]$ git checkout -f HEAD
git-lfs smudge -- 'testlfs.txt': git-lfs: command not found
error: external filter git-lfs smudge -- %f failed -1
error: external filter git-lfs smudge -- %f failed
fatal: testlfs.txt: smudge filter lfs failed
我想,我必须安装 git lfs。但不知道如何使用 ssh 命令安装它。
请帮忙!
【问题讨论】: