简体   繁体   中英

Cloning repositories from github fails

I am unable to clone any repositories from github. I always get this error message

fatal: Could not read from remote repository. Please make sure you have the
correct access rights and the repository exists

I have taken care of the following :

  1. Set my path variable to ;C:\\Program Files (x86)\\Git\\cmd; and C:\\Program Files (x86)\\Git\\bin; ;C:\\Program Files (x86)\\Git\\cmd; and C:\\Program Files (x86)\\Git\\bin;
  2. I have generated the public key and linked id_rsa.pub with git

I have seen all the related links and am unable to resolve this issue.

If you have issue with the ssh key, you can at least use as a workaround https url :

git clone https://github.com/username/reponame

Regarding ssh, make sure that:

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