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

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.1502282094.txt.gz
  • Zuletzt geändert: 2017/08/09 14:34
  • von 127.0.0.1