Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.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 - Fatal编程技术网

Git 推送到现有回购时的Bitbucket:致命:无法分叉

Git 推送到现有回购时的Bitbucket:致命:无法分叉,git,bitbucket,Git,Bitbucket,我正在尝试将我的站点连接到现有的git repo,在此之前,我已经从本地项目而不是从服务器通过ssh添加了提交。 我对git很在行,但我在服务器上做的是: git remote add origin "my bitbucket ssh url here" git add --all git commit -m "production" git push -f origin master 在这之后,我得到了这个错误 fatal: unable to for

我正在尝试将我的站点连接到现有的git repo,在此之前,我已经从本地项目而不是从服务器通过ssh添加了提交。 我对git很在行,但我在服务器上做的是:

git remote add origin "my bitbucket ssh url here"
git add --all
git commit -m "production"
git push -f origin master
在这之后,我得到了这个错误

fatal: unable to fork

我做错了什么?抓取也会产生这样的错误。添加上游也无济于事。

服务器机器无权与您的bitbucket repo对话。这是一个ssh URL,因此您的服务器机器需要执行您在本地机器上执行的操作:创建一个ssh公钥-私钥对,然后将公钥交给bitbucket