Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pushing from Bazaar to Github

Tags:

github

bazaar

I develop code in Bazaar and want to publish it on Github. What is the best way to achieve this?

It is OK if the solution only provides a way to push just one branch in the Bazaar repository to Github.

like image 207
Thomas Bach Avatar asked Nov 03 '22 17:11

Thomas Bach


2 Answers

Use the bzr-git plugin which should be bundled with recent versions of bzr.

like image 158
dOxxx Avatar answered Nov 09 '22 16:11

dOxxx


As of Bazaar 2.5.1, the correct syntax for bzr dpush (part of the git plugin which is installed by default on Windows) is:

bzr dpush https://github.com/myUserName/myProject.git/,branch=master

For the URL, just put the same exact "HTTPS clone URL" that github gives you for pulling down the repository (it's on the far right of the main repository page, if you search the page for "HTTPS clone URL" you should see it).

This will prompt you for your password every single time you use it. If that becomes a hassle, I recommend creating an authentication.conf file (storing it in bzr's HOME folder -- that is "%appdata%\bazaar\2.0" on Windows). You'll want to encrypt the file as well (even on a non-shared machine), since it will have your password in it as plain text * shudder *.

The following worked for me:

[github.com]
scheme=https
host=github.com
user=myUserName
password=myPassword
like image 27
BrainSlugs83 Avatar answered Nov 09 '22 16:11

BrainSlugs83