简体   繁体   English

找不到 Github 存储库。 未找到致命错误远程存储库,据称切换帐户后

[英]Github repository not found. fatal error remote repository not found, after supposedly swtiching accounts

I was using an account in Github to push my projects to my repositories.我在 Github 中使用一个帐户将我的项目推送到我的存储库。 Things were going well until I had the idea to create another account to put some projects that I believe are not important.事情进展顺利,直到我有了创建另一个帐户来放置一些我认为不重要的项目的想法。 Also I want to avoid having my main account bloated with projects that are not priority at the moment.此外,我想避免我的主要帐户因目前不优先的项目而变得臃肿。 As I tried to push my first unimportant project to my second account I received some error as I tried the steps当我尝试将我的第一个不重要的项目推送到我的第二个帐户时,我在尝试这些步骤时收到了一些错误

git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/myaccount/myrepo.git
git push -u origin master

I remembered that I was using another account.So like anyone that knows little of Git/Gihub.我记得我用的是另一个帐户。所以就像任何对 Git/Gihub 知之甚少的人一样。

I tried like crazy to fire the commands that could produce some effect, without acctually knowing what I was doing:我疯狂地尝试触发可以产生一些效果的命令,但实际上并不知道我在做什么:

git config user.email "secondaccount@email"
git config user.password "secondaccountpassword"
git config --global user.email "secondaccount@email"
git config--global user.password "secondaccountpassword"

But no results.但没有结果。 It says prints the exactly link to my repo and says that it doesn't exists.它说打印到我的回购的确切链接,并说它不存在。

remote: Repository not found.远程:未找到存储库。 fatal: repository ' https://github.com/myaccount/mkt.git/ ' not found致命:未找到存储库“ https://github.com/myaccount/mkt.git/

How can I diagnose this error?如何诊断此错误?

Git is caching your login credentials. Git 正在缓存您的登录凭据。 Use this to disable it:使用它来禁用它:

git config --system --unset credential.helper

The git config user data is only used as an identity for commits, although Github uses the email to determine which user authored the commit. git config 用户数据仅用作提交的标识,尽管 Github 使用电子邮件来确定哪个用户创作了提交。

And the correct config settings are user.name and user.email .正确的配置设置是user.nameuser.email

I am using Windows 10, I typed Credential Manager and opened a utiltiy that I've never paid attention of.我使用的是 Windows 10,我输入了 Credential Manager 并打开了一个我从未关注过的实用程序。 There had github entry so I changed to my second account and it worked.有 github 条目,所以我更改为我的第二个帐户并且它起作用了。 It was getting my account info from there.它从那里获取我的帐户信息。

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

相关问题 远程:未找到存储库。 致命:存储库 - remote: Repository not found. fatal: repository 错误:找不到存储库。 致命:无法从远程存储库读取 - Error: Repository not found. fatal: Could not read from remote repository GitHub:错误:未找到存储库。致命:远程端意外挂断(显然不同于类似的帖子) - GitHub: ERROR: Repository not found. fatal: The remote end hung up unexpectedly (different from similar posts apparently) GitHub错误:找不到存储库。 致命:远端意外挂断 - GitHub ERROR: Repository not found. fatal: The remote end hung up unexpectedly 错误:找不到存储库。 致命:远端意外挂断 - ERROR: Repository not found. fatal: The remote end hung up unexpectedly 远程:找不到存储库。 致命:找不到存储库“ repo_name” - remote: Repository not found. fatal: repository 'repo_name not found 远程:未找到存储库。 在我自己的 github 上 - remote: Repository not found. on my own github 远程:未找到存储库。 GitHub 动作 - remote: Repository not found. GitHub Action Github 远程:未找到存储库。 致命:在 Pycharm 中找不到存储库“https://github.com/org/repo.git/” - Github remote: Repository not found. fatal: repository 'https://github.com/org/repo.git/' not found in Pycharm 远程:未找到存储库致命:未找到 - remote: repository not found fatal: not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM