GitHub:错误:找不到存储库。致命的:远端意外挂断(明显不同于类似帖子) [英] GitHub: ERROR: Repository not found. fatal: The remote end hung up unexpectedly (different from similar posts apparently)
问题描述
我创建了一个目录, 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
我会问:
输入passphrase for key''/home/myusername/.ssh/id_rsa':
当我输入我的密码时成功使用 ssh -T git@github.com
)我得到这个:
错误:找不到存储库。
致命:远程端意外挂起
我不知道这是否有帮助,但:
git remote -v
返回:
origin git@github.com:githubaccountname / hello_git.git(fetch)
origin git@github.com:githubaccountname / hello_git.git(push)
我有看到类似帖子的答案,但似乎没有任何工作:
说这一切
错误:未找到存储库。
是否有Git仓库?您需要在GitHub上首先创建仓库。 它找不到存储库,因为它尚不存在!
I created a directory, hello_git
. In this directory I created a file, hello_git.py
, which prints out a "Hello git!" message.
Then I made hello_git
my current directory in the terminal and entered the following commands one after another in that directory:
git init
git add hello_git.py
git commit -m 'first commit'
git remote add origin git@github.com:githubaccountname/hello_git.git
When I enter the command git push origin master
I get asked:
Enter passphrase for key '/home/myusername/.ssh/id_rsa':
When I enter my passphrase (which authenticates successfully using ssh -T git@github.com
) I get this:
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
I don't know if this helps, but:
git remote -v
returns:
origin git@github.com:githubaccountname/hello_git.git (fetch)
origin git@github.com:githubaccountname/hello_git.git (push)
I have looked into answers of similar posts, but nothing seems to work:
Fatal: The remote end hung up unexpectedly while pushing to Git repository
GitHub ERROR: Repository not found. fatal: The remote end hung up unexpectedly
How do I resolve this issue of preventing push to origin wrt. GitHub?
The error message says it all
ERROR: Repository not found.
Is there a Git repository where you're looking?
You need to create the repository on GitHub first. It can't find the repository because it doesn't exist yet!
这篇关于GitHub:错误:找不到存储库。致命的:远端意外挂断(明显不同于类似帖子)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!