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.
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.
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
Use git-bzr-ng (a bidirectional bridge between git and bzr).