Error: Repository not found, Please make sure you have the correct accesses?

0

Creating my github repository run the codes in the order git add . , git commit -m 'un commit , but at the time of wanting to upload my code to the remote repository with the command git push -u origin master I get an error, it is the first time I upload my code to github but I can not due to this error that it's due,

ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

by putting the command git remote -v throws me

origin [email protected]:emeery/alimento.git (fetch)
origin  [email protected]:emeery/alimento.git (push)
    
asked by Gerardo Bautista 03.01.2018 в 02:38
source

3 answers

1

The repo does not exist, try to add any of these as an origin:

link
link

Depending on what you refer to with emeery/alimento

    
answered by 03.01.2018 в 02:51
1

You can see which remote repository you have associated with your local repo with:

git remote show origin

If it is not correct you can change your remote repository with:

git remote remove origin
git remote add origin http://github.com/emeery/nombre-repo.git

or with:

git remote set-url origin http://github.com/emeery/nombre-repo.git

Your first push synchronizes both and should be:

git push -u origin master
    
answered by 03.01.2018 в 03:46
0

I tried several ways but I found the solution with these two commands git push origin master --force and git push origin master -f

    
answered by 03.01.2018 в 09:05