gpt4 book ai didi

GitHub:错误:找不到存储库。 fatal: 远端意外挂断(和类似帖子明显不同)

转载 作者:IT王子 更新时间:2023-10-29 00:59:30 27 4
gpt4 key购买 nike

我创建了一个目录,hello_git。在这个目录中,我创建了一个文件 hello_git.py,它打印出“Hello git!”消息。

然后我在终端中将hello_git设置为我的当前目录,并在该目录中依次输入以下命令:

git init
git add hello_git.py
git commit -m 'first commit'
git remote add origin git@github.com:githubaccountname/hello_git.git

当我输入命令 git push origin master 我被问到:

Enter passphrase for key '/home/myusername/.ssh/id_rsa':

当我输入我的密码(使用 ssh -T git@github.com 成功验证)时,我得到这个:

ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

我不知道这是否有帮助,但是:

git remote -v

返回:

origin    git@github.com:githubaccountname/hello_git.git (fetch)
origin git@github.com:githubaccountname/hello_git.git (push)

我查看了类似帖子的答案,但似乎没有任何效果:

最佳答案

Eric已经给出了这个问题在repository不存在的情况下的最佳答案,但我想指出的是:

“Repository not found./remote end hang up unexpectedly”的响应对也是当repository确实存在时GitHub给出, 但用户没有推送给它的权限。

如果您完全确定 GitHub 上已经存在存储库,请确保您使用的帐户有权推送到该存储库。

关于GitHub:错误:找不到存储库。 fatal: 远端意外挂断(和类似帖子明显不同),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10922028/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com