In OPAL, each developer works in a fork of the central repository inside your personal group or the OPAL group. When the development is done, the code is merged back into the central repository.
To develop a new feature for a given OPAL project, you have to
Create a fork
Clone and setup the clone
Code your feature
Merge your changes into central repository
In the next sections these steps are explained in more detail.
2. Create a fork
From the OPAL group on PSI’s Gitlab, select the project (e.g. src)
This will take you to a page showing the URI for cloning the repository and a few other options.
Next to the URI there is a button marked fork; click on it.
You can build a fork in groups of which you are a member, or in your personal group, which is named after your username. Create the fork in your personal group. Forking in progress appears. Now wait (this can take a few minutes). If the fork has been created successfully, a URI to the new fork should be shown.
3. Clone your fork and setup clone
On your development machine, copy the URI of your fork to the clip board and clone it:
git clone <new repository>
Change into the cloned repository and add the central repository as a remote
git remote add upstream <original repository>
for OPAL the source repository the command is