I played with bzr (Bazaar) as a source-control manager (SCM) for a while, after having used svn for a couple of years. In the end, bzr turned out to be the stepping stone I needed to move to git. Hence, I started converting my repositories from bzr to git. Here’s how it’s easily done.

For this method, you’ll need to install the package bzr-fastimport to export data from your bzr repository. Gentoo users emerge dev-vcs/bzr-fastimport. Before you start, make sure you committed all your changes, e.g. using bzr st and bzr diff.

6 Responses to Convert bzr to git

Thanks so much, this was a breeze! I had needed to do this last year before you wrote this, and went through three much more difficult methods, and was not looking forward to it, so this was a relief 🙂

Great tutorial, however, does not work with newer Distributions anymore. But it works like a charm using a Debian-Wheezy chroot, except that you have to call “git checkout” instead of “git co” as the git version there is rather old.