【发布时间】:2019-12-11 13:12:37
【问题描述】:
操作系统:Windows10
git版本:2.23.0.windows.1
几个月前,我创建了一个存储库,一切运行良好。我不得不硬重置我的窗口,现在每当我尝试使用它git clone 'https://github.com/user_name/repo_name.git' 克隆分叉存储库时。
它给了我
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
【问题讨论】: