简体   繁体   中英

Cannot push on GitHub ERROR: Repository not found

I am having a very strange problem with git and github. When I try and push, I am getting

git push -u origin fix-validation
ERROR: Repository not found.
fatal: Could not read from remote repository.

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

I added the remote

git@github.com:account-name/repo-name.git

Looks like you're acessing the remote through ssh. Make sure you have your ssh configuration working (You've generated a key-pair and copied the public key to your github account).

Easiest thing to try is to add the https:// equivalent as a remote instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM