Github错误:未找到存储库(是的,另一个) [英] Github ERROR: Repository not found (yes, another one)

查看:588
本文介绍了Github错误:未找到存储库(是的,另一个)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在SO上搜索和阅读了大部分类似的问题,而且没有一个和我的一样。我在Github上有一个私人回购站,一个小时前我能够推得很好。

在我的〜/ .ssh / config中有以下内容:

 主机github 
主机名github.com
用户git
IdentityFile〜/ .ssh / id_rsa_gr.pub

因为我需要使用特定的公钥。我的.git / config看起来像下面这样(为了安全目的,有一些信息更改:

  [core] 
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remoteorigin]
fetch = + refs / heads / *:refs / remotes / origin / *
url = git @ github:MyProject / MyProject.git
[branchmaster]
remote = origin
merge = refs /头/大师

我不明白为什么它有效,然后停下来。



编辑︰现在,我甚至不能克隆它。我得到同样的错误。

编辑2:我添加VERBOSE到我的ssh配置,这就是我得到的:

 验证到github.com([207.97.227.239]:22) 
错误:找不到存储库
传送:发送2432,接收2920字节,0.2秒内
每秒字节数:发送12278.1,收到14741.7
致命:远程终端意外挂起

编辑3:更多信息,我跑了ssh -vT git @ github,这里是相关信息:

  debug1:读取配置数据/Users/gdboling/.ssh/config 
debug1:为gh
应用选项debug1:读取配置数据/ etc / ssh_config
debug1:为*
应用选项debug1:连接到github.com [207.97.227.239]端口22.
debug1:建立连接。
debug1:身份文件/Users/gdboling/.ssh/id_rsa_gr类型1
debug1:身份文件/Users/gdboling/.ssh/id_rsa_gr-cert类型-1
....
debug1:下一个验证方法:publickey
debug1:提供RSA公钥:/Users/gdboling/.ssh/id_rsa

注意它找到正确的键,然后使用错误的键。 就像您的SSH代理在尝试验证您时提供错误的密钥一样。这个超级用户的问题听起来像你想要做的 https://superuser.com/ questions / 272465 / using-multiple-ssh-public-keys


I've searched and read most of the similar issues here on SO and none seem to be the same as mine. I have a private repos on Github and an hour ago I was able to push just fine. Now, I get the ERROR: Repository not found message.

I have the following in my ~/.ssh/config:

Host github
    Hostname github.com
    User git
    IdentityFile ~/.ssh/id_rsa_gr.pub

because I need to use a specific public key. My .git/config looks like the following (with some info change for security purposes:

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        ignorecase = true
[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = git@github:MyProject/MyProject.git
[branch "master"]
        remote = origin
        merge = refs/heads/master

I don't understand why it worked for a while then just stopped.

EDIT: Now, I can't even clone it. I get the same error.

EDIT 2: I added VERBOSE to my ssh config and this is what I get:

Authenticated to github.com ([207.97.227.239]:22).
ERROR: Repository not found.
Transferred: sent 2432, received 2920 bytes, in 0.2 seconds
Bytes per second: sent 12278.1, received 14741.7
fatal: The remote end hung up unexpectedly

EDIT 3: More information, I ran ssh -vT git@github and here is the relevant information:

debug1: Reading configuration data /Users/gdboling/.ssh/config
debug1: Applying options for gh
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: identity file /Users/gdboling/.ssh/id_rsa_gr type 1
debug1: identity file /Users/gdboling/.ssh/id_rsa_gr-cert type -1
....
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/gdboling/.ssh/id_rsa

Note it is finding the right key, then using the wrong one.

解决方案

It sounds like your SSH agent is offering up the wrong key when trying to authenticate you. This issue over at superuser sounds like what you're trying to do https://superuser.com/questions/272465/using-multiple-ssh-public-keys.

这篇关于Github错误:未找到存储库(是的,另一个)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆