我有git repo https://github.com/jcubic/jquery.terminal我正在使用它使用linux box(Xubuntu)它工作正常但是当我尝试使用Windows 7 git bash克隆它时出现了这个错误:
jankiewj@RWAMW35281 MINGW64 /c/docs $ git clone
https://github.com/jcubic/jquery.terminal.git Cloning into
'jquery.terminal'... fatal: I don't handle protocol 'https'
jankiewj@RWAMW35281 MINGW64 /c/docs $ git clone
git@github.com:jcubic/jquery.terminal.git Cloning into
'jquery.terminal'... The authenticity of host 'github.com
(192.30.252.130)' can't be established. RSA key fingerprint is
SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8. Are you sure you
want to continue connecting (yes/no)? yes Warning: Permanently added
'github.com,192.30.252.130' (RSA) to the list of known hosts.
Permission denied (publickey). fatal: Could not read from remote
repository.
Please make sure you have the correct access rights and the repository
exists.
jankiewj@RWAMW35281 MINGW64 /c/docs
有没有办法使用https进行克隆我不想将Windows框中的ssh密钥添加到GitHub。
答案 0 :(得分:1)
关于https,请检查是否没有奇怪的字符,as in this question。
我刚输入:
git clone https://github.com/jcubic/jquery.terminal
它运作得很好。
对于ssh,您确实需要将公钥添加到GitHub帐户,并检查echo $HOME
的值。