Skip to content

Instantly share code, notes, and snippets.

@gerardorochin
Last active December 25, 2015 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerardorochin/6983972 to your computer and use it in GitHub Desktop.
Save gerardorochin/6983972 to your computer and use it in GitHub Desktop.
bzr to git migration
#!/bin/bash
# Getting the bzr plugin
mkdir -p ~/.bazaar/plugins
cd ~/.bazaar/plugins
bzr branch lp:~lyda.google/bzr-fastimport/mysql-export-fix fastimport
# Migration
git init ~/project.git
cd ~/project.git
bzr fast-export --plain ~/path/to/bzr/branch | git fast-import
git checkout master # only needed for a non-bare repository, like I made above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment