我试图从git中克隆一个项目
git clone link
收到了这条信息
remote: Enumerating objects: 24533, done.
remote: Counting objects: 100% (24533/24533), done.
remote: Compressing objects: 100% (5045/5045), done.
remote: Total 24533 (delta 15448), reused 24389 (delta 15306), pack-reused 0
Receiving objects: 100% (24533/24533), 75.12 MiB | 10.96 MiB/s, done.
Resolving deltas: 100% (15448/15448), done.
git-lfs filter-process: git-lfs: command not found
fatal: the remote end hung up unexpectedly
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
我一直在四处搜寻并尝试:
git config --system core.longpaths true
但是它不能工作,而且我的磁盘也是免费的
发布于 2021-05-05 09:11:59
这是一个简单的例子。根据您的操作系统检查安装类型的文档。对于linux,只需遵循以下命令:
您只需要在每个用户帐户上运行一次。
现在确保跟踪.gitattributes:
git add .gitattributes
请注意,定义Git应该跟踪的文件类型本身不会将任何预先存在的文件转换为Git,例如其他分支上的文件或以前提交历史记录中的文件。要做到这一点,请使用git migrate1命令,该命令有一系列可供设计以适应各种潜在用例的选项。
发布于 2021-10-22 22:42:13
如果您在Mac上,请运行:
brew install git-lfs
git lfs install
发布于 2021-09-01 03:56:51
TL;DR
也许git
没有在机器上链接到git-lfs
。试着把它连接起来:
ln -s "$(which git-lfs)" "$(git --exec-path)/git-lfs"
解释
虽然它说缺少了什么,但git-lfs
实际上可以安装在机器上,但git
只是在搜索路径中找不到它。因此,我们在其搜索路径中创建一个符号文件:
$(git --exec-path)/git-lfs
链接到机器上通常安装的一个:
which git-lfs
https://stackoverflow.com/questions/67395259
复制相似问题