当我使用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
关于git - 使用git推送到存储库时权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33800249/