Skip to content

Instantly share code, notes, and snippets.

@ahdiaz
ahdiaz / gist:1231726
Created September 21, 2011 10:07
Import multiple branches from Bazaar to Git
# Requirements
sudo aptitude install bzr-fastimport
# Create an empty Git repository
~/dev:$ mkdir repo.git
~/dev:$ cd repo.git
~/dev/repo.git:$ git init
# Export from Bazaar, import into Git
~/dev/repo.git:$ bzr fast-export --export-marks=marks.bzr ~/dev/repo.bzr/branch_1 | git fast-import --export-marks=marks.git