Search code examples
androidfluttergithubopen-source

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


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


Solution

  • 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