Aller au contenu. | Aller à la navigation

Outils personnels

Navigation
Vous êtes ici : Accueil / Services Communs / Pôle Biocomputing / Ressources / gitlab

gitlab

Informations on the gitlab server of the LBMC

The LBMC gitlab server is available at:

https://gitbio.ens-lyon.fr

 

GITLAB Connection:

To connect, simply clic on the CAS button.

Your account is now linked to the gitlab server, but blocked

You can send a mail to laurent.modolo@ens-lyon.fr to activate your account.

 

GIT CONNEXION

ssh key

To connect to the git server, you first need to generate an ssh key with the following command:

ssh-keygen -t ed25519 -C "your.email@ens-lyon.fr" -f ~/.ssh/id_gitbio

 

SSH configuration

Then add the following content to the ~/.ssh/config file:

Host gitbio.ens-lyon.fr
  IdentitiesOnly           yes
  IdentityFile             ~/.ssh/id_gitbio
  PreferredAuthentications publickey

Go to the page https://gitbio.ens-lyon.fr/-/profile/keys and paste the content of the file ~/.ssh/id_gitbio.pub. For this process to work you need to paste the exact content of the file. For example, by copying a cat output from a terminal you may be adding new newline character.

To cleanly copy this key, you can use the following commands:

On GNU/Linux:

xclip -sel clip < ~/.ssh/id_gitbio.pub

On MacOS:

pbcopy < ~/.ssh/id_gitbio.pub

Afterward you can simply paste the key with the shortcuts Ctrl+V or Cmd+V

 

testing

To test your connexion, use the following command:

ssh -Tv git@gitbio.ens-lyon.fr

 

Clonning

If the tests ran without error, you can now clone a repository with the following command:

git clone git@gitbio.ens-lyon.fr:user_name/repository

 

You can read the versioning section of the guide of good practices to see more git commands.