GitHub 和 GitLab 是否支持 git clone 的 --filter 参数? [英] Do GitHub and GitLab support git clone's --filter parameter?

查看:23
本文介绍了GitHub 和 GitLab 是否支持 git clone 的 --filter 参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 git 的 partialClone 功能.在这个 answer 我看到了 git clone --filter=tree:none <repo> 命令.

I want to use git's partialClone feature. In this answer I saw the git clone --filter=tree:none <repo> command.

但是尝试在github上执行时,提示warning: filtering not recognize by server, ignoring.它没有用.

But when trying to execute on github, the prompt warning: filtering not recognized by server, ignoring. It did not work.

我想知道是不是GitHub网站不支持,还是我的设置有问题.

I want to know if it is not supported by the GitHub website, or if there is a problem with my settings.

我询问了GitHub的反馈人员,没有得到技术人员的答复.

I asked the feedback staff of GitHub and have not got the answer from the technician.

推荐答案

几乎可以肯定 GitHub 或 GitLab 还不支持.

This almost certainly isn't supported by GitHub or GitLab yet.

--filter 选项正在积极开发中,还没有真正准备好用于通用用途.GitHub 关于 2018 年 9 月发布 Git 2.19 的 博文说

The --filter option is under active development and isn't really ready for general-purpose consumption yet. GitHub's blog post about the release of Git 2.19 in September, 2018 says

请注意,大多数公共服务器尚不支持该功能,但您可以针对本地 Git 2.19 安装使用 git clone --filter=blob:none.

Note that most public servers do not yet support the feature, but you can play with git clone --filter=blob:none against your local Git 2.19 install.

一旦这个功能变得更加完善并且主机开始支持它,我相信他们不会悄悄地这样做.据我所知,目前还没有主要的云提供商发布过这样的公告.

Once this feature becomes more fully-developed and hosts start to support it I'm sure they won't do so quietly. As far as I know, no major cloud provider has made such an announcement yet.

从 OP 2019-03-21 更新:

不久前,我收到了来自github的官方回复.他们认为 --filter 参数仍然是一个不成熟的特性,并伴随着一些安全问题.因此,短期内不会支持此功能.

Not long ago, I received an official reply from github. They think that the --filter parameter is still an immature feature and is accompanied by some security issues. Therefore, this feature will not be supported in the short term.

这篇关于GitHub 和 GitLab 是否支持 git clone 的 --filter 参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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