Git 拒绝许可(公钥)&;请确保您具有正确的访问权限,并且存储库存在
我尝试使用命令创建新存储库,但出现以下错误,如何解决此问题?`我的窗口是windows-7 proGit 拒绝许可(公钥)&;请确保您具有正确的访问权限,并且存储库存在,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
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视频。