Convert bzr to git
Convert bzr to git - AstroFloyd’s blog.
I found a couple bzr
repositories on my computer recently that I decided to convert to git
. I found this nice writeup on how to convert.
On Ubuntu:
sudo apt-get install git bzr bzr-fastimport
Then:
cp -pr repo-dir ${repo}_backup
cd ${repo}
git init
bzr fast-export --plain . - git fast-import
git co -f master
rm -rf .bzr/