【问题标题】:Problems cloning a repository on github for a college project在 github 上为大学项目克隆存储库的问题
【发布时间】:2015-04-03 03:28:05
【问题描述】:

我一直在尝试为一个项目克隆一个模板,我们需要通过 cmd 进行分叉和下载,我按照所有说明进行了设置,但是现在当我在笔记本电脑上尝试时,它不会让我访问它?我收到以下错误:

Cloning into 'ionic-assignment'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

【问题讨论】:

    标签: git github ssh cmd git-clone


    【解决方案1】:

    根据我的经验,这可能意味着您正在使用 ssh 并且没有设置 ssh 密钥。这是对它的解释:http://git-scm.com/book/en/v2/Git-on-the-Server-Generating-Your-SSH-Public-Key

    如果您使用的是 GitHub 或 BitBucket,此过程非常简单。

    GitHub:https://help.github.com/articles/generating-ssh-keys/

    【讨论】:

    • 谢谢!还有一个问题,使用 cmd 和使用 Git Bash 有区别吗?
    • cmd 和 Git Bash 的命令会有很大的不同。你有理由专门使用其中之一吗?
    猜你喜欢
    • 2021-12-31
    • 2014-01-10
    • 1970-01-01
    • 2017-06-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-30
    • 2019-01-02
    相关资源
    最近更新 更多