remote:找不到存储库。致命的:存储库

时间:2017-11-08 03:10:19

标签: git github

我在github上的项目已被转移到另一个github帐户。我在我当前的项目中添加了新的origin和git repo。但是当我将新的更改推送到新的github repo时,我发现了以下错误消息。请让我知道如何解决它。

remote: Repository not found.
fatal: repository 'https://github.com/MyDevelopment/project.mm.git/' not found

但我跟git remote -v一样回复准确的结果:

origin  https://github.com/MyDevelopment/project.mm.git (fetch)
origin  https://github.com/MyDevelopment/project.mm.git (push)

2 个答案:

答案 0 :(得分:0)

仔细检查网址(区分大小写)

但请仔细检查您是否有一个 credential helper ,它会缓存用于对您进行身份验证的(旧帐户)凭据(用户名/密码)。

git config credential.helper 

例如,在Windows上,这将是Windows Credential Managers

答案 1 :(得分:0)

使用此

重置网址
git remote set-url origin git://new.url.here

通常会导致以下原因。

  • 检查拼写
  • 检查您的权限
  • 检查您的SSH访问
  • 检查存储库是否确实存在

查看详细信息here

相关问题