简体   繁体   English

git 克隆未克隆现有远程存储库

[英]git clone is not cloning an existing remote repository

I am trying to clone a from a remote repository on Github to work on a code.我正在尝试从 Github 上的远程存储库中克隆一个以处理代码。

The command I am using is:我正在使用的命令是:

git clone https://github.com/appbrewery/Todoey-iOS13.git

And the error I am getting is:我得到的错误是:

remote: Repository not found.远程:未找到存储库。

fatal: repository 'https://github.com/Lev0071/Story.git/' not found致命:找不到存储库“https://github.com/Lev0071/Story.git/”

Output on Terminal终端上的 Output

Why is git telling me about为什么 git 告诉我

https://github.com/Lev0071/Story.git/ https://github.com/Lev0071/Story.git/

Whilst Im trying to clone虽然我试图克隆

https://github.com/appbrewery/Todoey-iOS13.git https://github.com/appbrewery/Todoey-iOS13.git

How do I command my git to quit obsessing about "https://github.com/Lev0071/Story.git/"?如何命令我的 git 停止对“https://github.com/Lev0071/Story.git/”的痴迷?

Thanks谢谢

This issue seems to be Git tracking your profile for the repository, as your tag is '@Lev007';这个问题似乎是 Git 跟踪您的存储库配置文件,因为您的标签是“@Lev007”; as a makeshift (or permanent if preferable), try using the new GitHub CLI (macOS installation) to clone this repository, it may solve your problem!作为临时(或永久,如果更喜欢),尝试使用新的GitHub CLI(macOS 安装)来克隆这个存储库,它可能会解决你的问题!

I found the solution, after not being able to install GitHub CLI(macOS Version) and getting the exact same error shown in the original question.在无法安装GitHub CLI(macOS 版本)并得到与原始问题中显示的完全相同的错误后,我找到了解决方案。

The solution I found was to reset my git configuration file using:我找到的解决方案是使用以下命令重置我的 git 配置文件:

rm ~/.gitconfig

Thank you so much SuperHarmony910 you did set off the process of finding the solution.非常感谢SuperHarmony910 ,您确实启动了寻找解决方案的过程。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM