To migrate your repository run the following commands in your local repository (cd path/to/ogs
):
We used Git LFS to store large files but switched back to plain git.
If you have branches from pre-GitLab times with e.g. newly created LFS files (benchmark files, images, …) you have to convert them back to plain git:
git add --renormalize .
git commit -m "Converted LFS files to plain git."
Now you have to squash this conversion commit into your original commit which added the files as Git LFS files. In result your branch history should and must not have any Git LFS files! Otherwise GitLab will reject the push!
When you are done migrating your branches you need to disable Git LFS in your local repository:
git lfs uninstall --local
Create a new fork from the official OGS-6 repository.
This creates a new fork under your account with the URL https://gitlab.opengeosys.org/YOUR-USERNAME/ogs
.
You have to modify your git remotes to point to the new GitLab repositories. Assuming the former official git repository remote is called upstream
:
git remote set-url upstream https://gitlab.opengeosys.org/ogs/ogs.git
Assuming your personal forks remote is called origin
:
git remote set-url origin git@gitlab.opengeosys.org:YOUR-USERNAME/ogs.git
Or you can clone a fresh repository by following the steps in Get the source code.
This article was written by Lars Bilke. If you are missing something or you find an error please let us know.
Generated with Hugo 0.122.0
in CI job 504124
|
Last revision: November 12, 2024
Commit: [BL/MPI] Use MPI_COMM_WORLD in reduceMin 4aae83e
| Edit this page on