Git error: "remote: Repository not found. "

Asked

Viewed 457 times

0

Every time I try to execute the command git push -u origin master, Git generates a repository error not found.

I followed exactly the step by step that is written on Github. Below is everything I did until sending the push for you to see and try to help me:

  • I created a private repository on Github without the file readme.md
  • created a folder on my computer
  • I opened Git on it
  • I typed the following commands:

    echo "# test-git" >> README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://github.com/usuario-do-git/nome-do-repositorio.git
    git push -u origin master
    

Soon after the following error is generated:

remote: Repository not found.

A friend of mine followed these steps and did not get this mistake, on the contrary, everything went right for her. I tried everything, I deleted even the account and created again, and again I repeated all the steps.

What I’m doing wrong to be thrown this mistake ?

1 answer

1

First check that the remote repository is already being identified with the command git remote -v. If it is not listed, link the remote repository to your local repository with the command git remote add origin [email protected]:leocomelli/curso-git.git. Note that in your attempt you do not use the snippet [email protected]:. Add this snippet in the attempt and see if it works.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.