通过这个先前的答案,我能够在有问题的机器上使用 SSH 使用 git clone 等。但是 - 仅在这样的机器上 - 我仍然从 git bash 中收到错误https:
$ git clone https://giuliohome:mypassword@github.com/giuliohome/MyPrivateRepo.git
Cloning into 'MyPrivateRepo'...
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/giuliohome/MyPrivateRepo.git/'
我尝试通过 github Web 设置创建个人访问令牌并使用它而不是密码,但它在有问题的机器上也像上面一样失败(同样,它在另一台机器上工作)。
我还尝试通过 Windows 凭据管理器删除/更改/添加 git 凭据。
编辑 对不起,我原来的问题是
证书问题:无法获取本地颁发者证书
(问题起源于昨天更新 tortoisegit 杀死了一个资源管理器进程并弄乱了我的电脑中的某些东西......)
我尝试了快速解决方法sslVerify = false
并收到上述错误,但返回true
我看到证书问题
这里是要求的详细信息
MYDOMAIN+MYDOMAINUSER@MYMACHINE MINGW64 /c/sviluppi/.../code/git/test2
$ git config -l --show-origin
file:C:/Program Files/Git/etc/gitconfig diff.astextplain.textconv=astextplain
file:C:/Program Files/Git/etc/gitconfig filter.lfs.clean=git-lfs clean -- %f
file:C:/Program Files/Git/etc/gitconfig filter.lfs.smudge=git-lfs smudge -- %f
file:C:/Program Files/Git/etc/gitconfig filter.lfs.process=git-lfs filter-process
file:C:/Program Files/Git/etc/gitconfig filter.lfs.required=true
file:C:/Program Files/Git/etc/gitconfig http.sslbackend=openssl
file:C:/Program Files/Git/etc/gitconfig http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
file:C:/Program Files/Git/etc/gitconfig core.autocrlf=true
file:C:/Program Files/Git/etc/gitconfig core.fscache=true
file:C:/Program Files/Git/etc/gitconfig core.symlinks=false
file:C:/Program Files/Git/etc/gitconfig core.editor="C:\\Program Files\\Notepad++\\notepad++.exe" -multiInst -notabbar -nosession -noPlugin
file:C:/Program Files/Git/etc/gitconfig credential.helper=manager
file:C:/Users/mydomainuser/.gitconfig user.name=Giulio
file:C:/Users/mydomainuser/.gitconfig user.email=giuliohome@xxxx.com
file:C:/Users/mydomainuser/.gitconfig http.sslverify=true
file:C:/Users/mydomainuser/.gitconfig credential.https://github.com.helper=manager
file:C:/Users/mydomainuser/.gitconfig credential.https://github.com.username=giuliohome
我在 Windows 10 Enterprise 上,我希望最终使用 tortoisegit,但目前我在 git bash 级别被阻止。所以现在我正在使用纯 git 并且我想在那里解决问题,然后我想我将能够返回 tortoisegit (再次,我在谈论 git https,因为 git ssh 就像已经说过的那样工作)
这是我的c:\users\mydomainuser\.gitconfig
现在
[user]
name = Giulio
email = giuliohome@xxxx.com
[http]
sslVerify = true
sslbackend = openssl
sslcainfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
[credential "https://github.com"]
helper = manager
username = giuliohome
替换sslbackend=schannel
为openssl
我得到后unable to get local issuer certificate
最后,让我补充一点,McAfee Endpoint Security 在这台机器上以及Blue Coat Unified Agent上都处于活动状态。