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

前端 未结 4 887
长发绾君心
长发绾君心 2020-12-10 16:12

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

But when trying to e

4条回答
  •  粉色の甜心
    2020-12-10 16:51

    Regarding partial clone/spare checkout support in GitLab:

    As of GitLab 12.4 (released 2019-10-22) partial cloning has been added as an optional alpha feature for self hosted instances. You can enable it instance wide via the feature flags api:

    curl --data "value=true" --header "PRIVATE-TOKEN: " https://gitlab.example.com/api/v4/features/gitaly_upload_pack_filter
    

    You can get more information about this here: https://docs.gitlab.com/ee/topics/git/partial_clone.html

    Just to be clear: You cannot use this feature with gitlab.com hosted repositories at the time of last edit of this answer.

提交回复
热议问题