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
相关推荐
00后程序员张8 小时前
发版前后的调试对照实践:用 WebDebugX 与多工具构建上线验证闭环
websocket·网络协议·tcp/ip·http·网络安全·https·udp
玩转4G物联网9 小时前
零基础玩转物联网-串口转以太网模块如何快速实现与HTTP服务器通信
服务器·网络·物联网·网络协议·tcp/ip·http·fs100p
飞翔的猪猪10 小时前
GitHub Recovery Codes - 用于 GitHub Two-factor authentication (2FA) 凭据丢失时登录账号
前端·git·github
墨城之左10 小时前
Windows 上安装 devsidecar 后,使用 WSL ubuntu ssl 报错
windows·ubuntu·ssl
创小匠10 小时前
《创始人IP打造:知识变现的高效路径》
人工智能·网络协议·tcp/ip
Sherry00711 小时前
从 HTTP/1.1 到 HTTP/3:一场为性能而生的协议演进之旅
网络协议·面试
z10_1411 小时前
台湾住宅IP哪家好,怎么找到靠谱的海外住宅IP代理商
网络·网络协议·tcp/ip
顾三殇11 小时前
【编译工具】(版本控制)Git + GitHub Actions:自动化工作流如何让我的开发效率提升200%?
git·自动化·github
绅士玖13 小时前
理解 .env 文件和 .gitignore 文件的作用与最佳实践
前端·git·代码规范
Hello.Reader14 小时前
利用ngx_stream_return_module构建简易 TCP/UDP 响应网关
网络协议·tcp/ip·udp