How can I mirror a project hosted on launchpad on github? How can I mirror a project hosted on launchpad on github? git git

How can I mirror a project hosted on launchpad on github?


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.


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 bazaarbrew tap gdubicki/tapbrew 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://git@github.com/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 branchPYTHONPATH="/usr/local/lib/python2.7/site-packages" bzr dpush -v git+ssh://git@github.com/gdubicki/update-motd-for-non-ubuntu.git,branch=master