Created
August 12, 2015 19:38
-
-
Save pocheptsov/522cf1008b8421b7dba1 to your computer and use it in GitHub Desktop.
Migrating from bazaar to git
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
# optionally create plugins directory | |
mkdir $HOME/.bazaar/plugins | |
# clone plugin repository | |
cd $HOME/.bazaar/plugins | |
bzr branch lp:bzr-fastimport fastimport | |
# clone dependency repo | |
bzr branch lp:python-fastimport python_fastimport | |
python setup.py install | |
# check bzr plugins | |
bzr plugins | |
# go to repo folder | |
cd $HOME/repos/my-project | |
# optionally init git repo | |
git init | |
# migrate from bazaar to git | |
bzr fast-export --git-branch=master | git fast-import | |
# for migrating bazaar commit metadata cosult | |
# http://www.fusonic.net/en/blog/2013/03/26/migrating-from-bazaar-to-git/ | |
# https://gist.github.com/davidroth/5243901 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment