Github 错误:仓库未找到(又一个)

3

我在 Stack Overflow 上搜索并阅读了大部分类似的问题,但似乎没有一个和我的情况完全相同。我在 Github 上有一个私有仓库,一小时前我还可以正常推送,现在却提示“ERROR: Repository not found”。

我在 ~/.ssh/config 中添加了以下内容:

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

因为我需要使用一个特定的公钥。我的.git/config文件看起来如下所示(为了安全起见,一些信息已更改):
[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

我不明白为什么它一开始能够工作,然后突然停止了。

编辑:现在,我甚至无法克隆它。我收到相同的错误信息。

编辑2:我在我的ssh配置中添加了VERBOSE,这是我得到的结果:

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

编辑3:更多信息,我运行了ssh -vT git@github并且这是相关的信息:

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

请注意,它是找到正确的关键字,然后使用错误的关键字。


其他研究过的问题对我也没有用,但这帮助我找到了问题(也是一个关键问题)。谢谢! - Phil Birnie
2个回答

3

0

你停止支付账户了吗?

你能在 .ssh/config 中打开 verbose 吗?


不,我没有停止支付。我编辑了我的问题以添加VERBOSE输出。 - Gregg

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接