【发布时间】:2023-01-11 17:32:03
【问题描述】:
混帐:v2.39.0.2
可悲的是我不能克隆上市和通过 https 的私人回购,我不知道为什么。 通过 http 克隆有效。
我在我的 git bash 中尝试了git clone https://github.com/espressif/esp-idf.git,输出如下:
Cloning into 'esp-idf'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
有没有人提示我可以从哪里开始调试问题?我什至不知道去哪里搜索。
我重新安装了 git 但仍然得到相同的结果。
【问题讨论】:
-
似乎 https url 自动替换为 ssh url。运行
git config -l,检查是否有包含insteadof的值。 -
你救了我的一天!很久以前我的配置中有一个
insteadof,我在那里尝试了一些东西。你想把它写成答案,这样我可以接受吗? (不能用评论来做)