Git 推送到现有回购时的Bitbucket:致命:无法分叉
我正在尝试将我的站点连接到现有的git repo,在此之前,我已经从本地项目而不是从服务器通过ssh添加了提交。 我对git很在行,但我在服务器上做的是: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 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