tech:git_over_https_-_conf_client
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:git_over_https_-_conf_client [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:git_over_https_-_conf_client [2025/11/10 15:46] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| {{tag> | {{tag> | ||
| + | |||
| = 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 18: | Ligne 46: | ||
| Voir '' | Voir '' | ||
| + | Voir aussi '' | ||
| + | |||
| ou alors | ou alors | ||
| Ligne 25: | Ligne 55: | ||
| - | == Si certificats auto-signés | ||
| - | <code bash> | + | == http.extraHeader |
| - | git -c http.sslVerify=false clone https:// | + | |
| - | </ | + | |
| + | Exemples | ||
| <code bash> | <code bash> | ||
| - | git config --global http.sslVerify false | + | git -c http.extraHeader=" |
| + | |||
| + | git config --global http.https:// | ||
| + | |||
| + | git --config-env=http.extraheader=GIT_AUTH_HEADER clone https:// | ||
| + | |||
| + | git config -l --local | ||
| </ | </ | ||
| - | |||
tech/git_over_https_-_conf_client.1742825205.txt.gz · Dernière modification : de 127.0.0.1
