可以在不安装Git LFS的情况下克隆Git LFS回购? [英] Can one clone a Git LFS repo without installing Git LFS?

查看:736
本文介绍了可以在不安装Git LFS的情况下克隆Git LFS回购?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用Git LFS将大文件推送到git存储库时,没有任何额外设置的用户可以在其系统上安装git-lfs吗?

解决方案

我只是试图做你的建议。我创建了一个使用Git LFS存储.csv文件的存储库。我把回购推到GitHub。然后,在没有安装Git LFS的系统上,我尝试复制回购并收到错误消息,指出未找到git lfs命令:



<$克隆到'git_lfs_tests'中...
remote:计数对象:11,完成p $ p $ g $ clone $ https $ g $ 。
remote:压缩对象:100%(9/9),完成。
remote:合计11(增量2),重用10(增量1),包重用0
开箱对象:100%(11/11),完成。
git-lfs filter-process:git-lfs:找不到命令
致命:远程端意外挂起
警告:克隆成功,但检出失败。
您可以使用'git status'
检查签出的内容,然后使用'git checkout -f HEAD'

重试结帐。

一旦我安装了Git LFS,它工作得很好。所以,看起来你需要在系统上使用git lfs来克隆repo。


When using Git LFS to push large files to git repository, can a user which does not have git-lfs installed on its system clone it without any additional setup?

解决方案

I just tried to do what you suggested. I created a repository that stores .csv files using Git LFS. I pushed the repo to GitHub. Then, on a system that doesn't have Git LFS installed, I tried to clone the repo and received an error saying that the "git lfs" command was not found:

λ git clone https://github.com/myusername/git_lfs_tests.git
Cloning into 'git_lfs_tests'...
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 11 (delta 2), reused 10 (delta 1), pack-reused 0
Unpacking objects: 100% (11/11), 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 the checkout with 'git checkout -f HEAD'

Once I installed Git LFS, it worked just fine. So, it appears that you need git lfs on the system to clone the repo.

这篇关于可以在不安装Git LFS的情况下克隆Git LFS回购?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆