Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.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

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,错误: 以下是我所做的: D:\flutter_app\tut1>git push -u origin master The authenticity of host 'github.com (13.234.176.102)' can't be established. RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8. Are you sure you want to continue co

错误:

以下是我所做的:

D:\flutter_app\tut1>git push -u origin master
The authenticity of host 'github.com (13.234.176.102)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no/[fingerprint])? y
Please type 'yes', 'no' or the fingerprint: yes
Warning: Permanently added 'github.com,13.234.176.102' (RSA) to the list of known hosts.
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.
我可以向你保证,这是存在的

我从来没有推动整个项目,只有一个文件,所以有任何其他的过程,因为它有几个文件夹也


PS:我也尝试过使用VS代码推送,但它也显示访问被拒绝,而且repo是公共的

有两条远程线路(ssh和https)。您选择了ssh远程线路,因为https从不显示RSA pubkey。因此,请尝试选择https远程线路。

您使用的是哪种推送协议?您的身份验证是否正确?@Dev请检查推送代码的用户是否具有存储库的权限。另一个您应该检查的是
git remote-v
git init   //(In correct directory)

git add .           

git status   //(every thing green)   
 
git config --global user.name "name"

git config --global user.email "email"

git commit -m "commit name"        
       
git push -u origin master