我如何镜像托管在github上Launchpad上的项目?

问题描述 投票:24回答:3

我想为在Launchpad上托管的项目做出积极贡献。我对GitHub更加满意,并希望在可能的情况下继续使用它。我可以在github上镜像bzr存储库吗?

如果可能,我该如何设置?

git github bazaar launchpad
3个回答
13
投票

您可以尝试某种git-bzr桥,例如[git-bzr git-bzr脚本:

此脚本允许您将市集存储库添加为git存储库中的git分支。之后,您可以获取Bazaar存储库,进行一些更改,然后将其推回Bazaar。

可能是相反的,这意味着您可以克隆bzr存储库并使用bzr-git推送到GitHub存储库。


1
投票

注意:trunk bzr-fastimport已损坏,并且可能损坏您的“标记”文件。

https://code.launchpad.net/~xrg/bzr-fastimport/re-tailor

此处的详细实现:http://git.hellug.gr/?p=xrg/openerp-rebzr;a=shortlog;h=refs/heads/fast-only


0
投票

我刚刚写了a detailed how-to for Mac users on Medium

此方法的最低版本:

  1. 安装市集和一个可与git配合使用的插件
brew install bazaar
brew tap gdubicki/tap
brew install gdubicki/tap/bzr-git
  1. 克隆市集仓库
# for example:
bzr branch lp:update-motd
  1. 创建Git存储库

在我的情况下,您需要的是回购的URL:

git+ssh://[email protected]/gdubicki/update-motd-for-non-ubuntu.git

  1. 将克隆复制到远程
cd update-motd # or whatever is the name of the Bazaar repo/branch
PYTHONPATH="/usr/local/lib/python2.7/site-packages" bzr dpush -v git+ssh://[email protected]/gdubicki/update-motd-for-non-ubuntu.git,branch=master
© www.soinside.com 2019 - 2024. All rights reserved.