为什么我无法通过 GIT 克隆私有存储库?

kyo*_*kyo 2 git ssh github ssh-keys

在此输入图像描述

\n

我已经在 GitHub 中成功添加了 SSH 密钥。\n我不知道为什么在尝试克隆私有存储库时不断收到此错误。

\n

SSH

\n
\xe2\x9e\x9c  test git clone git@github.com:nike/consumer.git\nCloning into \'consumer\'...\nERROR: Repository not found.\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n
Run Code Online (Sandbox Code Playgroud)\n

HTTPS

\n
\xe2\x9e\x9c  test git clone https://github.com/nike/consumer.git\nCloning into \'consumer\'...\nremote: Repository not found.\nfatal: repository \'https://github.com/nike/consumer.git/\' not found\n
Run Code Online (Sandbox Code Playgroud)\n

GitHub 桌面版

\n

成功克隆、获取、提交和推送\n在此输入图像描述

\n

为什么 ?我还错过了什么吗?

\n
\n

连接已确认

\n
\xe2\x9e\x9c  test ssh -T git@github.com\nHi ${myname}! You\'ve successfully authenticated, but GitHub does not provide shell access.\n
Run Code Online (Sandbox Code Playgroud)\n

Von*_*onC 5

是的,我可以从网站访问它,并且我仅从克隆部分复制并粘贴了实际 URL

网址

那么要克隆的 URL 将是

git@github.com:vi3global/consumer-engagement
# or
https://github.com/vi3global/consumer-engagement
Run Code Online (Sandbox Code Playgroud)

假设您的帐户已添加为协作者,因为它是私有存储库。

网址不会git@github.com:*nike*.