diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 15:09:15 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 15:09:15 +0000 |
commit | 536aa3a1f4b96abc4ca34489bf2cbe503afcded7 (patch) | |
tree | 88d08f7dfa29a32d6526773c4fe0fefd9f2bc7d1 /doc/topics/git/partial_clone.md | |
parent | 50ae4065530c4eafbeb7c5ff2c462c48c02947ca (diff) | |
download | gitlab-ce-536aa3a1f4b96abc4ca34489bf2cbe503afcded7.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/topics/git/partial_clone.md')
-rw-r--r-- | doc/topics/git/partial_clone.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/topics/git/partial_clone.md b/doc/topics/git/partial_clone.md index e6f84ee8251..83f1d0f0de5 100644 --- a/doc/topics/git/partial_clone.md +++ b/doc/topics/git/partial_clone.md @@ -44,7 +44,7 @@ Follow [Git for enormous repositories](https://gitlab.com/groups/gitlab-org/-/ep To enable partial clone, use the [feature flags API](../../api/features.md). For example: -```sh +```shell curl --data "value=true" --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/features/gitaly_upload_pack_filter ``` @@ -64,7 +64,7 @@ partial clone, all files – large or small – may be treated the same. With the `uploadpack.allowFilter` and `uploadpack.allowAnySHA1InWant` options enabled on the Git server: -```bash +```shell # clone the repo, excluding blobs larger than 1 megabyte git clone --filter=blob:limit=1m <url> @@ -109,7 +109,7 @@ enabled on the Git server: [issue tracking support for `--filter=sparse:oid`](https://gitlab.com/gitlab-org/git/issues/4) for updates. - ```bash + ```shell # Create a new directory for the Git repository mkdir jumbo-repo && cd jumbo-repo @@ -140,7 +140,7 @@ enabled on the Git server: other paths being downloaded automatically when checking out branches. Follow [issue proposing automating sparse checkouts](https://gitlab.com/gitlab-org/git/issues/5) for updates. - ```bash + ```shell # Enable sparse checkout git config --local core.sparsecheckout true |