首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >git致命:拒绝使用凭据丢失的主机字段

git致命:拒绝使用凭据丢失的主机字段
EN

Stack Overflow用户
提问于 2022-02-25 14:26:12
回答 1查看 4.1K关注 0票数 1

在克隆git存储库时,我得到了错误的fatal: refusing to work with credential missing host field

之前我得到了ssl握手错误,所以,在添加了下面的git配置文件之后,现在我遇到了提到的致命错误。

代码语言:javascript
运行
复制
    sslCert = ~/xyz.crt
    sslKey = ~/xyz.key
    sslVerify = false
    sslCertPasswordProtected = false

此外,我还试图添加以下内容,但没有成功:

代码语言:javascript
运行
复制
[url "https://hostname"]
    insteadOf = git://hostname

git认证批准

代码语言:javascript
运行
复制
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.

也用作下面的

代码语言:javascript
运行
复制
protocol=https
host=www.abc.com
username=yuyiuyiuy
password=78yhkjh
url=<git repo path>

致命:拒绝使用缺少凭据的主机字段

EN

回答 1

Stack Overflow用户

发布于 2022-04-01 09:53:52

这帮了我:

代码语言:javascript
运行
复制
...
[http]
    sslbackend = openssl
...
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71267299

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档