Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.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项目推送到Bitbucket中的空存储库_Git_Bitbucket_Ssh Keys_Openssh - Fatal编程技术网

无法将我的git项目推送到Bitbucket中的空存储库

无法将我的git项目推送到Bitbucket中的空存储库,git,bitbucket,ssh-keys,openssh,Git,Bitbucket,Ssh Keys,Openssh,我的Bitbucket帐户有一个问题,无法推送我的第一个git项目 我遵循了推动新git项目的步骤: 第一个命令行:git remote add originhttps://said_bous@org/said_bous/landing page.git,它可以工作 对 而不是第二个命令:git push-u origin master。。 Oops不起作用,并向我显示注释:“key\u load\u public:无效格式” 我认为我的openssh格式的私钥和公钥是正确的,因为Bitbu

我的Bitbucket帐户有一个问题,无法推送我的第一个git项目

我遵循了推动新git项目的步骤:

  • 第一个命令行:
    git remote add originhttps://said_bous@org/said_bous/landing page.git
    ,它可以工作 对
  • 而不是第二个命令:
    git push-u origin master
    。。 Oops不起作用,并向我显示注释:“key\u load\u public:无效格式”
我认为我的openssh格式的私钥和公钥是正确的,因为Bitbucket接受它

我不知道问题出在哪里


按照以下说明操作:

1. clone project
2. cd to folder
3. git init
4. git add file(s)
5. git commit -a
6. git push - u origin master

再次设置你的关键点,你可能犯了一些错误,它有点损坏…为了将来的参考,我不认为文本截图会给问题添加任何内容。只需粘贴文本(格式化为代码)。您是指公钥?…因此我从Bitbucket中删除它,并再次从new中设置它..λgit push-u origin master key_load_public:无效格式警告:将IP地址“104.192.143.1”的RSA主机密钥永久添加到已知主机列表中。存储库访问被拒绝。通过部署密钥的访问是只读的。致命:无法从远程存储库读取。请确保您具有正确的访问权限,并且存储库存在。在第二步中,您应该选择
yes