... | ... | @@ -151,6 +151,35 @@ Quand une commande git nécessite une authentification pour la première fois, a |
|
|
|
|
|
Les fois suivantes, les informations d'authentification seront réutilisées.
|
|
|
|
|
|
### Mac
|
|
|
|
|
|
Sous Mac, il faut utiliser le _credential helper_ `osxkeychain` :
|
|
|
|
|
|
```bash
|
|
|
git config --global credential.helper osxkeychain
|
|
|
```
|
|
|
|
|
|
Lors de l'exécution d'une commande Git nécessitant une authentification, renseigner dans le terminal le _Username_ (`oauth2`) et le _Password_ (le token).
|
|
|
|
|
|
```
|
|
|
sdr@MacBook-Pro-de-Poste Documents % git clone https://src.koda-rec.cnrs.fr/groupe-test/projet-test.git
|
|
|
Cloning into 'projet-test'...
|
|
|
Username for 'https://src.koda-rec.cnrs.fr': oauth2
|
|
|
Password for 'https://oauth2@src.koda-rec.cnrs.fr':
|
|
|
remote: Enumerating objects: 10, done.
|
|
|
remote: Counting objects: 100% (7/7), done.
|
|
|
remote: Compressing objects: 100% (3/3), done.
|
|
|
remote: Total 10 (delta 1), reused 0 (delta 0), pack-reused 3
|
|
|
Receiving objects: 100% (10/10), done.
|
|
|
Resolving deltas: 100% (1/1), done.
|
|
|
```
|
|
|
|
|
|
Lors d'un lancement ultérieur d'une commande git nécessitant une authentification, ces informations ne seront pas demandées.
|
|
|
|
|
|
Elles sont stockées dans le _Trousseau d'accès_ de Mac :
|
|
|
|
|
|
![image](uploads/4983e27bb62259ce08f2cf28574e476c/image.png)
|
|
|
|
|
|
---
|
|
|
|
|
|
[:arrow_backward: Gestion de son compte](Gestion%20de%20son%20compte) | [Gestion des groupes et des projets :arrow_forward:](Gestion%20des%20groupes%20et%20des%20projets) |
|
|
\ No newline at end of file |