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
相关推荐
lpfasd12319 分钟前
git-团队协作基础
chrome·git·elasticsearch
周杰伦fans2 小时前
.NET Core WebAPI 中 HTTP 请求方法详解:从新手到精通
网络协议·http·.netcore
John Song3 小时前
git多个账号管理
git·github
CV_J3 小时前
解决Git 冲突后本地提交丢失/未推送问题
git
__Witheart__3 小时前
Git 某个分支恢复到某个特定的 commit 状态
git
XU磊2605 小时前
Git 实现github仓库管理-删除指定目录下的所有文件并保留目录结构
git·github
zhimingwen7 小时前
解决 GitLab Token 轮换后 SourceTree 认证失败问题
git
昵称是6硬币7 小时前
代码管理——VS Code|Git
git·代码管理
Trouville018 小时前
如何在VScode环境下使用git进行版本控制,并上传到gitee远程仓库
ide·git·vscode
weixin_423391939 小时前
从开发到合并:AICR 项目 Git 协作提交全流程指南
git