Difference between revisions of "Converting bazaar repository to git"

From Notes_Wiki
m
m
 
Line 1: Line 1:
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Git|git]] > [[Converting bazaar repository to git]]
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Git|git]] > [[Converting bazaar repository to git]]
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Bazaar]] > [[Converting bazaar repository to git]]


To convert bazaar repository to git use following steps:
To convert bazaar repository to git use following steps:
Line 21: Line 23:


[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Git|git]] > [[Converting bazaar repository to git]]
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Git|git]] > [[Converting bazaar repository to git]]
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Bazaar]] > [[Converting bazaar repository to git]]

Latest revision as of 15:45, 24 August 2022

Home > CentOS > CentOS 6.x > Versioning tools > git > Converting bazaar repository to git

Home > CentOS > CentOS 6.x > Versioning tools > Bazaar > Converting bazaar repository to git

To convert bazaar repository to git use following steps:

  1. Download bazaar fastimport plugin using:
    bzr branch lp:bzr-fastimport fastimport
  2. Move it to ~/.bazaar/plugins folder
  3. yum -y install python-fastimport
  4. Take backup of bazaar repo folder
  5. Do "git init --shared" inside repository folder
  6. 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/


Home > CentOS > CentOS 6.x > Versioning tools > git > Converting bazaar repository to git

Home > CentOS > CentOS 6.x > Versioning tools > Bazaar > Converting bazaar repository to git