当我使用git push -u origin master命令时,出现错误

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

我正在使用Windows 10。

我想我没有正确登录。

我已经在 GIT push: permission denied (public key)上看到了答案,但是我不能使用 ssh命令。我猜是因为我在Windows计算机上。

此外,Github表示建议使用https来支持ssh。

请您参考如下方法:

如果您使用的是Windows计算机,则有一个扩展名为

git extension 

下载后,您必须制作ssh文件以使用git扩展名从git服务器推送或拉取。

您可以在git服务器帐户中创建SSH文件。之后,您可以尝试使用git extension


评论关闭
IT序号网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!