Difference between revisions of "Converting bazaar repository to git"
From Notes_Wiki
m |
m |
||
Line 1: | Line 1: | ||
<yambe:breadcrumb self="Converting bazaar repository to git"> | <yambe:breadcrumb self="Converting bazaar repository to git">Git|Git</yambe:breadcrumb> | ||
=Converting bazaar repository to git= | =Converting bazaar repository to git= | ||
Line 20: | Line 20: | ||
Steps learned from http://wiki.bazaar.canonical.com/BzrFastImport#Documentation and https://astrofloyd.wordpress.com/2012/09/06/convert-bzr-to-git/ | Steps learned from http://wiki.bazaar.canonical.com/BzrFastImport#Documentation and https://astrofloyd.wordpress.com/2012/09/06/convert-bzr-to-git/ | ||
<yambe:breadcrumb self="Converting bazaar repository to git">Git|Git</yambe:breadcrumb> | |||
<yambe:breadcrumb self="Converting bazaar repository to git"> |
Revision as of 08:37, 12 September 2018
<yambe:breadcrumb self="Converting bazaar repository to git">Git|Git</yambe:breadcrumb>
Converting bazaar repository to git
To convert bazaar repository to git use following steps:
- Download bazaar fastimport plugin using:
- bzr branch lp:bzr-fastimport fastimport
- Move it to ~/.bazaar/plugins folder
- yum -y install python-fastimport
- Take backup of bazaar repo folder
- Do "git init --shared" inside repository folder
- Finally use:
- bzr fast-export --plain . | git fast-import
- git checkout -f master
- rm -rf .bzr
Steps learned from http://wiki.bazaar.canonical.com/BzrFastImport#Documentation and https://astrofloyd.wordpress.com/2012/09/06/convert-bzr-to-git/
<yambe:breadcrumb self="Converting bazaar repository to git">Git|Git</yambe:breadcrumb>