如何在 github 上镜像启动板上托管的项目?

发布于 2024-09-10 20:20:46 字数 114 浏览 2 评论 0原文

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

如果可以的话我该如何设置呢?

I want to contribute actively to a project that is hosted on Launchpad.
I'm much more comfortable with GitHub, and would like to continue to use it if possible.
Would I be able to mirror the bzr repository on github?

If it's possible, how could I set this up?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

廻憶裏菂餘溫 2024-09-17 20:20:46

你可以尝试某种像这样的 git-bzr 桥 git-bzr git-bzr 脚本:

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

反之亦然,这意味着您可以克隆 bzr 存储库并使用 bzr-git

You could try some kind of git-bzr bridge like this git-bzr git-bzr script:

This script allows you to add bazaar repositories as git branches in your git repository.
After that, you can fetch the Bazaar repo, make some changes, and push it back into Bazaar.

The reverse is possible, meaning you can clone a bzr repo and push to your GitHub repo with bzr-git.

末蓝 2024-09-17 20:20:46

请注意: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

Beware: trunk bzr-fastimport is broken and may corrupt your 'marks' file..

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

A detailed implementation here:
http://git.hellug.gr/?p=xrg/openerp-rebzr;a=shortlog;h=refs/heads/fast-only

谈下烟灰 2024-09-17 20:20:46

我刚刚写了详细的操作方法用于将 Launchpad Bazaar 存储库镜像到 Github(请注意,它主要针对 Mac 用户)

此操作方法的最小版本:

  1. 安装 bazaar 和插件以使其与 git 一起使用
brew install bazaar
brew tap gdubicki/tap
brew install gdubicki/tap/bzr-git
  1. 克隆 Bazaar 存储库
# for example:
bzr branch lp:update-motd
  1. 创建 Git 存储库

您需要的是存储库的 URL,在我的例子中:

git+ssh: //[电子邮件受保护]/gdubicki/update-motd-for-non -ubuntu.git

  1. 将克隆推送到远程
cd update-motd # or whatever is the name of the Bazaar 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

I have just written a detailed how-to for mirroring a Launchpad Bazaar repo to Github (note that it focuses on Mac users).

A minimal version of this how-to:

  1. Install bazaar and a plugin to make it work with git
brew install bazaar
brew tap gdubicki/tap
brew install gdubicki/tap/bzr-git
  1. Clone the Bazaar repository
# for example:
bzr branch lp:update-motd
  1. Create the Git repository

You’ll need is the URL to the repo, in my case:

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

  1. Push the clone to the remote
cd update-motd # or whatever is the name of the Bazaar 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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文