链接到bitbucket的gcloud repos变为只读

时间:2016-10-14 05:47:28

标签: git bitbucket gcloud

我在gcloud源代码/开发人员区域创建了一个repo,它链接到bitbucket上托管的repo。这一直很好,但是最近当我尝试做一个简单的推送时,我得到了这样的信息:

fatal: protocol error: expected sha/ref, got 'The remote repository is a read-only mirror of http://bitbucket.og/[...]. To update, please push there.

我不介意直接使用BitBucket切换工作,但我喜欢如果可以的话继续通过gcloud运行这个想法。我已经取消了gcloud上的回购链接并重新连接到BitBucket,没有运气。

这对任何人来说都很熟悉吗?

1 个答案:

答案 0 :(得分:1)

我和github链接的repo有同样的问题。我最后只为github添加了一个遥控器。 e.g。

git remote add github http://github.com/<user>/<repo>
git push github master

这样做,gcloud repo会自动镜像并立即反映在云控制台中。