使用git推送到存储库时权限被拒绝
当我使用命令git push-u origin master时,我得到了错误使用git推送到存储库时权限被拒绝,git,ssh,version-control,repository,push,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. 我正在使用Windows10 我想我没有正确登录 我在上看到了答案,但我无法使用命令ssh。我想这是因为我在W
Permission denied (publickey)
fatal: Could not read from remote repository
Please make sure you have the correct access rights
and the repository exists.
我正在使用Windows10
我想我没有正确登录
我在上看到了答案,但我无法使用命令ssh
。我想这是因为我在Windows电脑上
此外,Github表示建议使用https来支持ssh。如果您使用的是Windows机器,那么有一个扩展名为
git extension
下载之后,您必须使用git扩展名从git服务器推送或拉取ssh文件
您可以在git服务器帐户中创建SSH文件。之后,您可以使用git扩展来尝试此操作,您必须从git存储库内部执行该命令。即。,
包含.git文件的文件夹我得到错误
git:“extension”不是git命令。请参阅“git--help”。
。这是git服务器的GUI应用程序。这不是命令。下载名为git extension的应用程序并对其进行配置。这是一个简单的步骤,即Git的GUI客户端(其中一个),我在Git代表内部执行命令。我已使用Git init
初始化,使用Git add README.md
添加了一个新文件,使用Git commit-m“commit msg”
提交,使用git远程添加原点添加原点git@github.com:username/rep name.git
,但现在我无法推送到代表处