Connaissances
Cloner un repository avec une clé oauth2
Publié le 06/12/2024
Git
Pour cloner un repository authentifié, en utilisant un token oauth2, il faut utiliser la commande
git clone https://oauth2:<TOKEN>@<GITLAB_SERVER>/<REPOSITORY>
Le Token doit avoir les droits "read_repository" dans Gitlab
Source :
https://stackoverflow.com/a/29570677/158716