我无法克隆 Git 存储库,并收到此错误:
krishna.soni@KRISHNACHANDRAS /c/Projects $ git clone http://stage.abc.com:10088/pqr http://<url>/<repository> Cloning into '<repository>'... fatal: could not read Username for 'http://<url>': No such file or directory
我已经阅读了Bitbucket、Windows 和“atal: could not read Password for”,但仍然有问题。
我继续进行,但现在出现此错误
sh.exe": chown: command not found krishna.soni@KRISHNACHANDRAS /c $ git clone ssh://krishna.sonipayu.in@stage.payupaisa. /projects Cloning into 'C:/projects'... Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. > krishna.soni@KRISHNACHANDRAS /c > $ git clone ssh:<url> > ts > Cloning into 'C:/projects'... > Permission denied (publickey). > fatal: Could not read from remote repository. Please make sure you have the correct access rights
并且存储库存在。
它看起来像权限问题 - 而不是 Windows 7 问题。
您的 ssh 密钥未经授权 - Permission denied (publickey)。
Permission denied (publickey)
您需要创建一个公共 ssh 密钥并要求 Git 存储库的管理员添加ssh公共密钥
ssh
有关如何执行此操作的信息:保存 ssh 密钥失败