Skip to content
Snippets Groups Projects
Forked from R3 / school / courses
1033 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

How to configure git?

$ git config --global user.name "Firstname Lastname"
$ git config --global user.email "first.last@uni.lu"

Test the configuration

Test whether your username and email have been registered

$ git config --list

This should list the configuration with `user.name` and `user.email`.
Exit by typing `q`.

What is an SSH key?

An SSH key is a secure access credential.


**Principle**:

Communicate **securely** with Github/Gitlab **without** entering the username/password.

How do I get and set my SSH key?


Check if you already have an SSH key:
$ ls -al ~/.ssh

If there are 2 files named `id_rsa`, you have an SSH key.


If you don’t have yet an SSH key, you have to generate one: ```bash $ ssh-keygen -t rsa # -b 4096 ```
Then, add the SSH key to Github/Gitlab.