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

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

问题描述

我想使用git的partialClone功能.在此答案中,我看到了git clone --filter=tree:none <repo>命令. /p>

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

我想知道GitHub网站是否不支持它,或者我的设置是否有问题.

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

解决方案

几乎可以肯定,GitHub或GitLab尚不支持此功能.

--filter选项正在积极开发中,尚未真正适合通用用途. GitHub的关于Git 2.19在2018年9月发布的博客文章说

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

一旦该功能得到更全面的开发,并且主机开始支持该功能,我相信他们不会悄悄地这样做.据我所知,尚未有主要的云提供商宣布这一消息.

从OP 2019-03-21更新:

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

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

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

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

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

解决方案

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

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

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.

Update from OP 2019-03-21:

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天全站免登陆