gpt4 book ai didi

git - 为什么我无法通过 GIT 克隆私有(private)存储库?

转载 作者:行者123 更新时间:2023-12-02 18:19:22 25 4
gpt4 key购买 nike

enter image description here

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

SSH

➜  test git clone <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="31565845715658455944531f525e5c" rel="noreferrer noopener nofollow">[email protected]</a>:nike/consumer.git
Cloning into 'consumer'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

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

HTTPS

➜  test git clone https://github.com/nike/consumer.git
Cloning into 'consumer'...
remote: Repository not found.
fatal: repository 'https://github.com/nike/consumer.git/' not found

GitHub 桌面版

成功克隆、获取、提交和推送 enter image description here

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


连接已确认

➜  test ssh -T <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="41262835012628352934236f222e2c" rel="noreferrer noopener nofollow">[email protected]</a>
Hi ${myname}! You've successfully authenticated, but GitHub does not provide shell access.

最佳答案

Yes, I have access to it from the website, and I copied and pasted the actual URL from the cloning section only

URL

那么要克隆的 URL 将是

<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cfa8a6bb8fa8a6bba7baade1aca0a2" rel="noreferrer noopener nofollow">[email protected]</a>:vi3global/consumer-engagement
# or
https://github.com/vi3global/consumer-engagement

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

URL不会<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="67000e1327000e130f12054904080a" rel="noreferrer noopener nofollow">[email protected]</a>:*nike* .

关于git - 为什么我无法通过 GIT 克隆私有(private)存储库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71084640/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com