|
|
|
To convert a repository from Bazaar to Git, follow these steps:
|
|
|
|
|
|
|
|
Getting set up
|
|
|
|
--------------
|
|
|
|
|
|
|
|
You're going to first need to get your computer set up to do it.
|
|
|
|
|
|
|
|
### Install Breezy (the Python 3 version of Bazaar)
|
|
|
|
|
|
|
|
On Debian (and Debian-based systems like Ubuntu):
|
|
|
|
```
|
|
|
|
$ sudo apt install breezy
|
|
|
|
```
|
|
|
|
|
|
|
|
On Fedora:
|
|
|
|
```
|
|
|
|
$ sudo dnf install -y breezy
|
|
|
|
```
|
|
|
|
|
|
|
|
### Checkout the repository
|
|
|
|
|
|
|
|
If you haven't already, you'll want to checkout the Bazaar repository:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ brz checkout lp:openlp
|
|
|
|
```
|
|
|
|
|
|
|
|
Do the Conversion
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
First you'll need to initialise a git repository:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ git init
|
|
|
|
```
|
|
|
|
|
|
|
|
Then you need to pipe a `fast-export` from Breezy into a `fast-import` in git:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ brz fast-export --plain . | git fast-import
|
|
|
|
```
|
|
|
|
|
|
|
|
Once that is done, you'll want to check git's status to look for any problem files:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ git status
|
|
|
|
```
|
|
|
|
|
|
|
|
Fix up any issues, and then you can push the repository to a remote repository:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ git remote add origin https://server/repo
|
|
|
|
$ git push origin master
|
|
|
|
```
|
|
|
|
|
|
|
|
And you're done! |
|
|
|
\ No newline at end of file |