Last active
December 25, 2015 13:29
-
-
Save gerardorochin/6983972 to your computer and use it in GitHub Desktop.
bzr to git migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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