Migrating from bazaar to git

Most of the python projects, I build between 2007 and 2012, are currently located on launchpad and use bazaar as version control system. As most of my current stuff lives on github, I want to migrate some of my bazaar projects to git. This is actually quite easy:

sudo apt-get install bzr-fastimport

This will install the fast import extension to bazaar, which will allow you to import the bazaar commits to git using git fast-import command.

Now navigate to your bazaar project and init the git repository, if you haven't done so, yet: git init.

In order to perform the migration run:

bzr fast-export . | git fast-import