Do GitHub and GitLab support git clone's --filter parameter?

早过忘川 提交于 2019-12-23 21:33:15

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/55195590/do-github-and-gitlab-support-git-clones-filter-parameter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!