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
相关推荐
一天八小时2 小时前
计算机网络————(一)HTTP讲解
网络协议·计算机网络·http
427724004 小时前
IDEA使用git不提示账号密码登录,而是输入token问题解决
java·git·intellij-idea
利刃大大12 小时前
【Git】五、多人协作
git
哑巴语天雨14 小时前
前端面试-网络协议篇
websocket·网络协议·http·面试·https
ktkiko1115 小时前
Websocket——心跳检测
网络·websocket·网络协议
小梁不秃捏17 小时前
HTTP 常见状态码技术解析(应用层)
网络·网络协议·计算机网络·http
yourkin66618 小时前
HTTPS(下)
服务器·网络协议·https
逸Y 仙X19 小时前
Git常见命令--助力开发
java·大数据·git·java-ee·github·idea
元气满满的热码式19 小时前
logstash中的input插件(http插件,graphite插件)
网络·网络协议·http·elasticsearch·云原生
wgslucky21 小时前
pipeline 使用git parameter插件实现动态选择分支构造
git