【问题标题】:Git for windows 7 failing to clone the repo from github适用于 Windows 7 的 Git 无法从 github 克隆存储库
【发布时间】:2016-08-24 20:19:55
【问题描述】:

我有 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 克隆我不想将 ssh 密钥从 windows 框添加到 GitHub。

【问题讨论】:

  • 我很确定 git for Windows 的最新版本可以处理这个问题。你用的是哪个版本?
  • @Philippe 2.6.3.windows.1

标签: git github windows-7 git-bash


【解决方案1】:

关于https,检查是否有奇怪的字符,as in this question

我刚刚输入:

git clone https://github.com/jcubic/jquery.terminal

效果很好。

对于 ssh,您确实需要将您的公钥添加到您的 GitHub 帐户,并检查 echo $HOME 的值。

【讨论】:

    猜你喜欢
    • 2013-04-19
    • 1970-01-01
    • 2016-10-09
    • 1970-01-01
    • 2016-02-14
    • 1970-01-01
    • 2017-09-09
    • 2019-09-16
    相关资源
    最近更新 更多