Git为Windows 7无法克隆从github回购
问题描述:
我有git回购https://github.com/jcubic/jquery.terminal我正在使用它使用Linux框(Xubuntu)它工作正常,但当我已经尝试克隆它使用Windows 7 git bash我得到这个错误:Git为Windows 7无法克隆从github回购
[email protected] MINGW64 /c/docs $ git clone
https://github.com/jcubic/jquery.terminal.git Cloning into
'jquery.terminal'... fatal: I don't handle protocol 'https'
[email protected] MINGW64 /c/docs $ git clone
[email protected]: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.
[email protected] MINGW64 /c/docs
是否有使用HTTPS我不想从窗户框添加SSH密钥到GitHub上克隆的方法。
答
对于HTTPS,检查是否有没有奇怪的字符,as in this question。
我只需输入:
git clone https://github.com/jcubic/jquery.terminal
它的工作就好了。
对于SSH,你的确需要你的公钥添加到您的GitHub帐户,并检查echo $HOME
值。
我敢保证git for Windows的最新版本可以搞定。你使用哪个版本? – Philippe
@Philippe 2.6.3.windows.1 – jcubic