Verified Commit 8e26951c authored by Lars Bilke's avatar Lars Bilke

[web] Added note in git clone with --filter parameter.

parent 794214af
......@@ -28,13 +28,17 @@ This creates a new fork under your account with the URL `https://gitlab.opengeos
You can use the git command line tool to clone the remote repository on GitLab to your PC:
```bash
$ git clone git@gitlab.opengeosys.org:YOUR-USERNAME/ogs.git
$ git clone --filter=blob:limit=100k git@gitlab.opengeosys.org:YOUR-USERNAME/ogs.git
$ cd ogs
$ git config remote.pushdefault origin
$ git config push.default current
```
This creates a new folder `ogs` in your current working directory with the OGS source code. After this step, the remote called `origin` refers to your fork on GitLab. It also sets the default remote for pushes to be `origin` and the default push behavior to `current`. Together this means that if you just type `git push`, the current branch is pushed to the `origin` remote (git version >= 2.5 required).
This creates a new folder `ogs` in your current working directory with the OGS source code. After this step, the remote called `origin` refers to your fork on GitLab. It also sets the default remote for pushes to be `origin` and the default push behavior to `current`. Together this means that if you just type `git push`, the current branch is pushed to the `origin` remote.
::: {.note}
The `--filter=blob:limit=100k`-parameter instructs git to only fetch files which are smaller than 100 Kbyte. Larger files (e.g. benchmark files, images, PDFs) are fetched on-demand only. This happens automatically and [is a replacement for the previous Git LFS tracked files](https://github.com/ufz/ogs/issues/2961). Requires **git 2.22**!
:::
Create a second remote called `upstream` that points at the main OGS repository and fetch from it:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment