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
相关推荐
ikkkkkkkl43 分钟前
P2P架构
网络协议·计算机网络·p2p
愚昧之山绝望之谷开悟之坡1 小时前
HTTP与HTTPS协议的核心区别
网络协议·http·https
无敌最俊朗@1 小时前
**HTTP/HTTPS基础** - URL结构(协议、域名、端口、路径、参数、锚点) - 请求方法(GET、POST) - 请求头/响应头 - 状态码含义
爬虫·python·网络协议·http·https
还是鼠鼠1 小时前
JMeter 教程:使用 HTTP 请求的参数列表发送 POST 请求(form 表单格式)
网络协议·jmeter·http
仍然探索未知中1 小时前
Git分支管理
git
Think Spatial 空间思维2 小时前
【SSL部署与优化】HTTP/2与HTTPS的协同效应
安全·http·https·部署·ssl·优化
小妖6662 小时前
windows11 安装好后右键没有 git bash 命令
git
只做开心事2 小时前
Git 多人协作
git
freejackman3 小时前
Git从入门到精通
git·gitee·gitlab·github
艾米莉亚糖3 小时前
解决qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
开发语言·qt·ssl