Prepare your environment¶
This page is a quick-reference checklist for setting up a new machine to contribute to OSM via GitLab.
1. Create an SSH key¶
Accept the default path (~/.ssh/id_rsa). Add an optional passphrase.
2. Add your public key to GitLab¶
- Go to https://osm.etsi.org/gitlab/ and sign in.
- Navigate to Edit Profile → SSH Keys.
- Paste the contents of
~/.ssh/id_rsa.pubinto the Key field. - Set a title and an expiry date (maximum one year), then click Add key.
3. Configure ~/.ssh/config¶
Host osm.etsi.org
Hostname osm.etsi.org
User git
IdentityFile ~/.ssh/id_rsa
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa
Test the connection:
4. Configure Git¶
The username and email must match your GitLab profile.
Note: Your email address will be visible on commits. If you'd like to keep it private, you can use a masked address — e.g. if your email is name@company.com, set user.email to hidden@company.com. This lets other users identify you by username while Git stats still track your company's contributions by domain.
If you use the same machine for other projects, you can restrict these settings to a specific repository:
cd <osm_project_local_folder>
git config --local user.name <your_etsi_user>
git config --local user.email <email>
Verify:
5. Clone a project¶
To clone all the main OSM projects at once:
mkdir -p ~/OSM/
cd ~/OSM
BRANCH=master
for PROJECT in common devops IM LCM MON NBI NG-SA NG-UI osmclient RO tests
do
git clone ssh://git@osm.etsi.org:29419/osm/${PROJECT}.git
git -C ${PROJECT} checkout ${BRANCH}
done
You are now ready to contribute. See Contributing Code for the full contribution workflow.