How to convert a Bazaar repository to GIT repository?

Posted by Naruto Uzumaki on Programmers See other posts from Programmers or by Naruto Uzumaki
Published on 2013-06-25T10:52:13Z Indexed on 2013/06/25 16:28 UTC
Read the original article Hit count: 249

Filed under:
|

We have a large bazaar repository and we want to convert it to a git repository. The bazaar repository contains the folders of each of the interns. Any documentation/code prepared by interns is committed in their directory so there are a huge number of commits.

What steps should be performed to securely convert the bazaar repository to a git repository so that we do not lose any commit information.

We firstly need to create a backup of the existing bazaar repository and then convert it.

Edit: I followed this link: http://librelist.com/browser//cville/2010/2/9/migrate-repository-bzr-to-git/

It's working fine on my system with Ubuntu. But when I try to run it on the actual server it gives me EOF error and crashes

Starting export of 1036 revisions ...
fatal: EOF in data (1825 bytes remaining)
fast-import: dumping crash report to .git/fast_import_crash_11804

Edit 2: I also tried it on a new CentOS system and received the following error

fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions

© Programmers or respective owner

Related posts about version-control

Related posts about git