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
相关推荐
Kiri霧2 小时前
Git入门
git
Nejosi_念旧3 小时前
git报错解决:ssh: connect to host github.com port 22: Connection refused
git·ssh·github
你的人类朋友3 小时前
说说git的变基
前端·git·后端
程序设计实验室4 小时前
在Windows上将git与ssh-agent搭配使用,再也不用输入git密码了
windows·git
Clownseven4 小时前
Gitea Webhook教程:实现git push后自动部署更新网站 (CI/CD入门)
git·ci/cd·gitea
兔老大RabbitMQ6 小时前
git pull origin master失败
java·开发语言·git
.Shu.9 小时前
计算机网络 HTTPS 全流程
网络协议·计算机网络·https
还听珊瑚海吗13 小时前
基于WebSocket和SpringBoot聊天项目ChatterBox测试报告
spring boot·websocket·网络协议
码农小白-RMS13 小时前
cursor-执行git指令(vscode同理)
git
爱喝矿泉水的猛男16 小时前
Git Commit 提交信息标准格式
git·commit