1

I am trying to push my flutter project on Github. I get this error. can anyone please specify the actual reason why this happened?

 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.

enter image description here

Talha Iqbal
  • 99
  • 1
  • 8
  • 1
    Well it says that the repository is not found. Make sure it's typed correct and exists. `git remote -v` will help. – bereal May 28 '21 at 07:09
  • Does this answer your question? [Git Push ERROR: Repository not found](https://stackoverflow.com/questions/10116373/git-push-error-repository-not-found) – Albert221 May 28 '21 at 07:19
  • Did you add SSH key to GitHub? Please look into the docs that you followed that correctly https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent – Subair K May 28 '21 at 09:20

1 Answers1

1

Check first in command line what your remote repository URL is.

cd /path/to/repo
git remote -v

It should be git@github.com:<myGitHubAccount>/<myProject>, with the case (uper/lowercase) correctly set in the URL.

As commented, this supposed you have registered your SSH public key to your GitHub account SSH settings page.
To check that, type (it should print a Welcome message):

ssh -T git@github.com
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250