tech:git_over_https_-_conf_client
Ceci est une ancienne révision du document !
Table des matières
Git over HTTPS - conf client
git clone https://user@git.acme.fr/user/projet
- ~/.netrc
machine git.acme.fr login user password P@ssw0rd
chmod 600 ~/.netrc
Voir man netrc
Voir aussi http.extraHeader
ou alors
git config --global credential.helper store
Si certificats auto-signés
git -c http.sslVerify=false clone https://example.com/path/to/git
git config --global http.sslVerify false
http.extraHeader
Exemples
git -c http.extraHeader="Authorization: Basic YmQ2MTY0Om82ZzV4YWU1Zm1xZXFkYmphdGRmamljaGRrNTVsd2VxNGp4eXQyanZ3dGp1enhkd3dneGE=" clone https://azuredevops.example.net/Main/MyProj/_git/MyRepo git config --global http.https://yourdomain/.extraheader "AUTHORIZATION: basic $(echo -n "x-access-token:${{ secrets.BOT_TOKEN }}" | base64)" git --config-env=http.extraheader=GIT_AUTH_HEADER clone https://dev.azure.com/yourOrgName/yourProjectName/_git/yourRepoName git config -l --local
tech/git_over_https_-_conf_client.1758697873.txt.gz · Dernière modification : de Jean-Baptiste
