git - 使用git推送到存储库时权限被拒绝

标签 git ssh version-control repository push

当我使用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/

相关文章:

svn - 说服从 CVS 切换到 SVN 的论据

Git 错误 "non-monotonic index"

git - 如何在 `git rebase -i` 之后使用 `git merge` 而不会把事情搞砸?

Git SSH key : Two different account for github and gitlab

python - "paramiko.ChannelException: Administratively prohibited"在脚本中途遇到

python - 如何在 Linux 中使用不同的参数并行运行 python 脚本?

python - 在Windows上将代理转发与paramiko一起使用

Git:阻止外部用户访问特定分支

git - 将存储库从 github 迁移到本地文件系统?

javascript - React 应用程序 Heroku 构建失败 - git Push heroku master - 第 1 行 : got unexpected end of input. 哪个文件的第 1 行出现 X,解析错误?