Gitbio
The LBMC gitlab server is available at:
GITLAB Connection:
To connect, simply clic on the SSO 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 CONNECTION
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/-/user_settings/ssh_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 connection, use the following command:
ssh -Tv git@gitbio.ens-lyon.fr
Cloning
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.