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
相关推荐
nightunderblackcat36 分钟前
新手向:Git下载全攻略
git
板鸭〈小号〉2 小时前
UDP-Server(3)chat聊天室
网络·网络协议·udp
若无_5 小时前
了解 .husky:前端项目中的 Git Hooks 工具
前端·git
想当花匠的小码农5 小时前
Git 仓库“减肥”指南:从检测、清理到同步的全流程实践
git
weixin_456904276 小时前
使用HTTPS 服务在浏览器端使用摄像头的方式解析
网络协议·http·https
疯狂的维修9 小时前
关于Gateway configration studio软件配置网关
网络协议·c#·自动化·gateway
R_.L10 小时前
Git : 基本操作
git
wow_DG10 小时前
【WebSocket✨】入门之旅(五):WebSocket 的安全性
网络·websocket·网络协议