未找到存储库。致命:无法从远程读取。扑

Repository not found. fatal: Could not read from remote. flutter

我正试图在 Github 上推送我的 flutter 项目。我收到这个错误。谁能具体说明发生这种情况的真正原因?

 C:\Users\iumeedsaher\quiz_app_flutter>git push -u origin master 
 Enter passphrase for key '/c/Users/iumeedsaher/.ssh/id_rsa': 
 ERROR:
 Repository not found. fatal: Could not read from remote repository.
 Please make sure you have the correct access rights and the repository exists.

首先在命令行中检查您的远程存储库 URL 是什么。

cd /path/to/repo
git remote -v

应该是git@github.com:<myGitHubAccount>/<myProject>,大小写(uper/lowercase)在URL中设置正确。

如评论所述,这假设您已将 SSH public 密钥注册到您的 GitHub 帐户 SSH 设置页面。
要检查这一点,请键入(它应该打印一条欢迎消息):

ssh -T git@github.com