操作系统: Windows10
git版本: 2.23.0.windows.1
几个月前我 fork 了一个仓库,一切都运行良好。我需要重置我的 windows,现在每当我尝试使用 git clone' https://github.com/user_name/repo_name.git'
克隆fork的仓库时。
它给了我一个错误信息
remote: Repository not found. fatal: repository 'https://github.com/user_name/repo_name.git/' not found
运行 git config --list
,我的所有认证信息都是正确的,可能是什么原因呢?
按照 @VonC 的建议
首先,我尝试了git clone https://github.com/user_name/repo
它输出了
fatal: unable to access 'https://github.com/user_name/repo/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
其次,我可以通过插入https://github.com/user_name/repo
来成功访问 repo。
第三,运行 git config --global http.sslBackend "openssl"
然后尝试克隆 git 仍然显示相同的repo not found
第四,运行 git config -l
,我得到了 http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
现在运行git config --system http.sslcainfo "C:\Program Files\Git\mingw64\ssl\certs\curl-ca-bundle.crt"
,这应该可以解决问题,但是它给出了错误信息:
error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied
git config -l
命令是否包含http.sslcainfo=/ssl/certs/ca-bundle.crt
? - VonC