Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 拒绝许可(公钥)&;请确保您具有正确的访问权限,并且存储库存在_Git_Github - Fatal编程技术网

Git 拒绝许可(公钥)&;请确保您具有正确的访问权限,并且存储库存在

Git 拒绝许可(公钥)&;请确保您具有正确的访问权限,并且存储库存在,git,github,Git,Github,我尝试使用命令创建新存储库,但出现以下错误,如何解决此问题?`我的窗口是windows-7 pro PS C:\Users\Naing Min Zaw\Desktop\learningGit> git push -u origin main git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas

我尝试使用命令创建新存储库,但出现以下错误,如何解决此问题?`我的窗口是windows-7 pro

       PS C:\Users\Naing Min Zaw\Desktop\learningGit> git push -u origin main
       git@github.com: Permission denied (publickey).
       fatal: Could not read from remote repository.

      Please make sure you have the correct access rights
      and the repository exists.
我在powershell中使用此命令

git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:NaingMinZaw/learningGit.git
git push -u origin main
检查输出

git -c "core.sshCommand='ssh -Tv'" push -u origin main
这将显示SSH在推送过程中查找的SSH密钥


如果您没有SSH密钥,并将公钥添加到。

这不是java,也不是javascript、html、css或angular,请删除所有标记请将您的问题正确标记到
git
,删除所有其他标记Hank Victor Polo De Gyves MonteroI认为您需要设置SSH密钥。参考youtube视频。