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

后端 未结 3 1871
难免孤独
难免孤独 2021-02-01 04:58

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

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-01 05:29

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

提交回复
热议问题