I’m in the process of moving several of my projects that used Bazaar (bzr) for revision control to Git. Converting a repository from bzr to git is very easy when using the fastimport package. In a Debian-based distribution run the following command to install the package (don’t be fooled by its name, it also contains the fastexport option):

sudo aptitude install bzr-fastimport

The go into the directory that contains your bzr repo and run:

git init
bzr fast-export `pwd` | git fast-import 

You can now check a few things, e.g. running git log to see whether the change log was imported correctly. This is also the moment to move the content of your .bzrignore file to a .gitignore file.

If all is well, let’s clean up:

rm -r .bzr 
git reset HEAD

Thanks to Ron DuPlain for his post here, from which I got most of this info.
{"cc_re__cc_re__cc_by_sa_3_0": ["a> (17)\n</li>\n\t<li class=\"cat-item cat-item-1\"><a href=\"https://blog.karssen.org/category/uncategorized/\" title=\"View all posts filed under Uncategorized\">Uncategorized</a> (2)\n</li>\n\t\t</ul>\n</div><div class=\"clear\"></div></div><div class=\"widget widget_ccLicense\"><div class=\"widget-content\"><h3 class=\"widget-title\"></h3>\t\t\t<!--Creative Commons License-->\r\n\t\t\t\t<div style=\"text-align: center; font-size: xx-small;\">\r\n                                Blog under the \r\n                                <a rel=\"license\" target=\"_blank\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\"> Creative Commons Attribution-ShareAlike 3.0 License<br/>\r\n\t\t\t\t<img alt=\"Creative Commons License\" border=\"0\" src=\"http://i.creativecommons.org/l/by-sa/3.0/88x31.png\"/></a>\r\n\t\t\t\t</div>\r\n\t\t\t<!--/Creative Commons License-->\r\n\t\t</div><div class=\"clear\"></div></div>\t\t\n\t</div><!-- /sidebar -->\n\n\t\n\t<div class=\"clear\"></div>\n\n</div> <!-- /wrapper -->\n\n\t<div class=\"footer section large-padding bg-dark\">\n\t\t\n\t\t<div class=\"footer-inner section-inner\">\n\t\t\n\t\t\t\t\t\t\n\t\t\t\t<div class=\"column column-1 left\">\n\t\t\t\t\n\t"]}