wiki:programme:git:tipps_und_tricks

Dies ist eine alte Version des Dokuments!


Nützliche Kniffe für git

Tipps und Tricks

fatal: unable to access 'https://<gitserver>/<user>/<repo>.git/': SSL certificate problem: self signed certificate in certificate chain

SSL-Fehler ignorieren:

git config http:sslVerify false

SSL-Zertifikate einbinden:

  • http.sslCAInfo
  • http.sslCert
  • http.sslKey

Git hinter einem Proxy

git --config http.proxy="http(s)://<username>:<passord>@<proxy>:<Port>/" clone <git-url>

Alle Informationen werden dann in das verzeichnis .git/config übernommen.

Sollte hier noch ein SSL-Problem bestehen, kann man mit –config http.sslverfy=„false“ die SSL-Verschlüsselung nicht mehr beachten.

Damit git nur einen bestimmten SSH-Schlüssel zur Authentifzierung nutzt, kann man ab git v2.10 das SSH-Kommando definieren

git config [--global] core.sshCommand "ssh -i ~/.ssh/id_ed25519 -F /dev/null"

Für git < v2.10 ist der folgende Workaround sinnvoll

In der Datei ~/.ssh/config die folgende Zeile einfügen

host github.com
 HostName github.com
 IdentityFile ~/.ssh/id_rsa_github
 User git
  • core.autocrlf

in der Datei .git/config muss nur die url folgendermaßen umgestellt werden:

url = http://<user>:<password>@<git-server>/<git-repo>
Geben Sie Ihren Kommentar ein. Wiki-Syntax ist zugelassen:
   __ __   ___    __    ____   ____
  / //_/  / _ \  / /   / __/  / __/
 / ,<    / , _/ / /__ / _/   / _/  
/_/|_|  /_/|_| /____//_/    /___/
 
  • wiki/programme/git/tipps_und_tricks.1515414633.txt.gz
  • Zuletzt geändert: 2018/01/08 13:30
  • von wikiadmin