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
相关推荐
i建模7 小时前
安装 `openclaw@2026.3.1` 时遇到了 Git 仓库访问权限问题
git
freewlt9 小时前
git配置文件名称大小写
git
F1FJJ11 小时前
只是想查个数据,不想装 phpMyAdmin
数据库·网络协议·容器·开源软件
小熊熊知识库11 小时前
Git工具使用
git
F1FJJ12 小时前
Shield CLI:MySQL 插件 vs phpMyAdmin:轻量 Web 数据库管理工具对比
前端·网络·数据库·网络协议·mysql·容器
春夜喜雨13 小时前
Git 分支merge合并常用步骤与命令操作
git
秦时明月之君临天下14 小时前
Git查看分支创建时间
git
liuxin_072514 小时前
phpstorm 操作git 分支合并到master
ide·git·phpstorm
bu_shuo15 小时前
IP相关知识
网络·网络协议·tcp/ip
cyforkk16 小时前
Git 进阶技巧:优雅合并初始提交与 Commit 规范详解
git