git clone:SSL: no alternative certificate subject name matches target host name

git clone 时的常见错误:

  1. fatal: unable to access 'https://ip_or_domain/xx/xx.git/': SSL: no alternative certificate subject name matches target host name 'ip_or_domain'

    解决办法: disable ssl verify
Bash 复制代码
git config --global http.sslVerify false
  1. remote: HTTP Basic: Access denied
    remote: You must use a personal access token with 'read_repository' or 'write_repository' scope for Git over HTTP.
    remote: You can generate one at https://ip_or_domain/profile/personal_access_tokens
    fatal: Authentication failed for 'https://ip_or_domain/xxx/xxx.git/'

    解决办法:生成access token
    按提示进入 https://ip_or_domain/profile/personal_access_tokens ip_or_domain 是你具体项目的地址

    git clone 时,需要输入密码的地方, 输入你生成的 access token
相关推荐
007张三丰28 分钟前
git中的SSH 公钥配置详细指南(GitHub、GitLab、Gitee平台适用)
git·ssh·github
michael_ouyang38 分钟前
WebSocket心跳方案选型与最佳实践
网络·websocket·网络协议
23124_8041 分钟前
HTTP头注入
网络·网络协议·http
yue0082 小时前
git使用
git
源远流长jerry2 小时前
DPDK 实现的轻量级 UDP 回显服务程序
linux·运维·服务器·网络·网络协议·ip
tianlebest2 小时前
git action
大数据·git·elasticsearch
Maỿbe3 小时前
TCP与UDP的探究
网络协议·tcp/ip·udp
henujolly3 小时前
what`s rpc
网络·网络协议·rpc
郝学胜-神的一滴4 小时前
深入浅出网络协议:从OSI七层到TCP/IP五层模型全解析
开发语言·网络·c++·网络协议·tcp/ip·程序人生
数据安全科普王4 小时前
HTTP缓存机制详解:强缓存 vs 协商缓存
网络协议·http·缓存