GitKraken:“此存储库需要LFS,但您尚未安装LFS". [英] GitKraken: "This repository requires LFS but you do not have LFS installed"

查看:244
本文介绍了GitKraken:“此存储库需要LFS,但您尚未安装LFS".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于GitHub上的存储库,GitKraken显示:

For a repository on GitHub, GitKraken shows:

此存储库需要LFS,但您没有安装LFS. 修改LFS跟踪的文件可能会损害您的 资料库.请访问我们的支持网站以获取有关安装LFS的信息.

This repository requires LFS but you do not have LFS installed. Modifying files that are tracked by LFS could potentially harm your repository. Please visit our support site for info on installing LFS.

按钮:支持网站

但是,他们的支持站点未提及大文件存储".最大的文件约为4 MB.修改大"文件如何损坏存储库-可能损坏的二进制数据?

However, their support site does not mention "Large File Storage". And the largest file is about 4 MB. How can modifying "large" files harm the repository - potentially corrupted binary data?

要满足这里的要求,必须采取什么步骤?

And what steps are necessary to meet the requirements here?

推荐答案

但是,他们的支持站点未提及大文件存储".

However, their support site does not mention "Large File Storage".

Git LFS要求上确实如此页面.

如何修改大"文件会损害存储库...?

How can modifying "large" files harm the repository...?

Git将每个文件的每个副本存储在存储库中.如果您有4 MB的文件,那没什么大不了的.如果您有4 MB文件的1000个修订版本,则4000 MB将存储在本地并在每次克隆时进行传输.

Git stores each copy of each file in the repository. If you have a 4 MB file, that's no big deal. If you have 1000 revisions of a 4 MB file, that's 4000 MB that is stored locally and transferred every time you clone.

Git LFS 的工作方式是为大文件添加了第二个对象存储区,它们只会被传输当您需要将其签出时.在实际的Git存储库中,将存储一个小的指针文件",其中包含有关在何处检索二进制文件的信息.因此,您的存储库很小,但是您可以按需获取大型二进制文件.

Git LFS works by adding a second object storage area for large files, they will only be transferred when you need to check them out. In the actual Git repository, a small "pointer file" with the information on where to retrieve the binaries is stored. So your repository stays small, but you can get the large binaries on demand.

如果尝试在不安装LFS的情况下使用此存储库,则您(首先)将无法看到实际的二进制内容,只能看到指针文件.每次尝试添加内容时,您将(第二次)将二进制文件检入到实际的存储库中,而不是LFS空间中.这不会是腐败的",但肯定不是存储库的创建者想要的.

If you try to work with this repository without installing LFS you will (first) not be able to see the actual binary contents, just the pointer file. You will (second) check binaries into the actual repository, instead of the LFS space, every time you try to add content. It will not be "corrupt", but it will certainly not be what the originators of the repository intended.

这应该像遵循GitKraken的说明一样安装 Git LFS .

这篇关于GitKraken:“此存储库需要LFS,但您尚未安装LFS".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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