tech:git_over_https_-_conf_client
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:git_over_https_-_conf_client [2025/09/24 09:11] – Jean-Baptiste | tech:git_over_https_-_conf_client [2025/11/10 15:46] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| = Git over HTTPS - conf client | = Git over HTTPS - conf client | ||
| + | |||
| + | Voir aussi : | ||
| + | * [[Notes git et cerfificats HTTPS]] | ||
| + | |||
| <code bash> | <code bash> | ||
| git clone https:// | git clone https:// | ||
| </ | </ | ||
| + | |||
| + | |||
| + | == Méthode credential.helper | ||
| + | |||
| + | <code bash> | ||
| + | git config --global credential.helper 'cache --timeout 32400' | ||
| + | </ | ||
| + | |||
| + | |||
| + | Pour désactiver credential.helper temporairement | ||
| + | <code bash> | ||
| + | git -c credential.helper='' | ||
| + | </ | ||
| + | |||
| + | Effacer toutes les autorisations du cache (forgetting all cached credentials) | ||
| + | <code bash> | ||
| + | git credential-cache exit | ||
| + | </ | ||
| + | |||
| + | |||
| + | == Méthode netrc (déconseillé) | ||
| + | |||
| + | **Méthode à éviter, car le mot de passe est enregistré en clair** | ||
| <code - ~/ | <code - ~/ | ||
| Ligne 27: | Ligne 54: | ||
| </ | </ | ||
| - | |||
| - | == Si certificats auto-signés | ||
| - | |||
| - | <code bash> | ||
| - | git -c http.sslVerify=false clone https:// | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | git config --global http.sslVerify false | ||
| - | </ | ||
tech/git_over_https_-_conf_client.1758697873.txt.gz · Dernière modification : de Jean-Baptiste
