Difference between revisions of "Converting bazaar repository to git"
From Notes_Wiki
(Created page with "<yambe:breadcrumb>Bazaar|Bazaar</yambe:breadcrumb> <yambe:breadcrumb>Git|Git</yambe:breadcrumb> =Converting bazaar repository to git= To convert bazaar repository to git use ...") |
m |
||
Line 6: | Line 6: | ||
# Download bazaar fastimport plugin using: | # Download bazaar fastimport plugin using: | ||
#:<pre> | #:<pre> | ||
#: | #:: bzr branch lp:bzr-fastimport fastimport | ||
#:</pre> | #:</pre> | ||
# Move it to ~/.bazaar/plugins folder | # Move it to ~/.bazaar/plugins folder | ||
Line 14: | Line 14: | ||
# Finally use: | # Finally use: | ||
#:<pre> | #:<pre> | ||
#: bzr fast-export --plain . | git fast-import | #:: bzr fast-export --plain . | git fast-import | ||
#: git checkout -f master | #:: git checkout -f master | ||
#: rm -rf .bzr | #:: rm -rf .bzr | ||
#:</pre> | #:</pre> | ||
Revision as of 05:33, 14 April 2015
<yambe:breadcrumb>Bazaar|Bazaar</yambe:breadcrumb> <yambe:breadcrumb>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>Bazaar|Bazaar</yambe:breadcrumb> <yambe:breadcrumb>Git|Git</yambe:breadcrumb>