将repo从一个bitbucket帐户转移到另一个bitbucket帐户

时间:2017-06-27 02:34:06

标签: git bitbucket

我在一个bitbucket帐户中托管了一个回购。代码(repo)在生产服务器上运行。我将生产服务器上的repo推送到一个全新的bitbucket帐户。现在在我的本地笔记本电脑上,我将旧的bitbucket的repo origin url指向一个新的。当我在本地笔记本电脑上进行git pull时,我得到了:

Your configuration specifies to merge with the ref 'refs/heads/product_replacement'
from the remote, but no such ref was fetched.

git branch -a给了我:

product_replacement
remotes/origin/product_replacement

git config -l给了我:

branch.product_replacement.remote=origin
branch.product_replacement.merge=refs/heads/product_replacement

git ls-remote给了我:

7c2629311bb03fc153f743733374454b5961eaf0 refs/remotes/origin/product_replacement

1 个答案:

答案 0 :(得分:1)

如果您想将源代码,wiki和其他资源的所有权完全迁移到另一个团队/用户帐户,则可以使用bitbucket“transfer repo”功能。

请关注https://blog.bitbucket.org/2012/06/13/transfer-repositories/

相关问题