在克隆git存储库时,我得到了错误的fatal: refusing to work with credential missing host field
。
之前我得到了ssl握手错误,所以,在添加了下面的git配置文件之后,现在我遇到了提到的致命错误。
sslCert = ~/xyz.crt
sslKey = ~/xyz.key
sslVerify = false
sslCertPasswordProtected = false
此外,我还试图添加以下内容,但没有成功:
[url "https://hostname"]
insteadOf = git://hostname
git认证批准
protocol=https
host=www.abc.com
username=yuyiuyiuy
password=78yhkjh
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcm/tlsverify for more information.
warning: failed to probe 'http(s)://www.abc.com/' to detect provider
warning: An error occurred while sending the request.
warning: see https://aka.ms/gcm/autodetect for more information.
也用作下面的
protocol=https
host=www.abc.com
username=yuyiuyiuy
password=78yhkjh
url=<git repo path>
致命:拒绝使用缺少凭据的主机字段
发布于 2022-04-01 09:53:52
这帮了我:
...
[http]
sslbackend = openssl
...
https://stackoverflow.com/questions/71267299
复制相似问题