How can I convert bazaar repo to git? I have old zip archive with .bzr directory in it.
I've try to follow this tutorial but when I try to install:
sudo apt-get install bzr-fastimport
it got error that there are no bzr-fastimport package and there is python-fastimport I've install it but
bzr fast-export --plain `pwd`
show error:
bzr: ERROR: unknown command "fast-export"
I've also try to follow the solution in answer to this question: The right way to convert from bazaar to git and sync them
I've created new repo on github but when I called:
bzr dpush https://github.com/jcubic/aikiframework.git,branch=master
I've got error:
bzr: ERROR: Not a branch: "https://github.com/jcubic/aikiframework.git,branch=trunk/".
An alternative way to get the fastimport plugin for Bazaar (instead of downloading the Yakkety Yak package as suggested in this answer) is to get it directly from its upstream source on Launchpad (thanks to this blog post by Robin Winslow):
cd ~/.bazaar/plugins
bzr branch lp:bzr-fastimport fastimport
Then you can go back to the directory containing your bzr repo and do the conversion:
git init
bzr fast-export --plain . | git fast-import
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With