codem - blog

Use Github without using Git (and without really trying)

I’m probably on the outer when it comes to using Git. I find Bzr much easier to use, just as fast and prefer it over Git unless absolutely necessary.

One plus Git has over Bzr is Github which is an awesome solution to sharing code, especially within Open Source projects. Bzr has Launchpad but I’ve often found it slow and cumbersome. Github has presence as well and really makes a good effort to promote sharing of code.

I wanted to use Github to share some of the Open Source libraries and modules we develop but didn’t want to change version control systems to do so. The solution is simple:

  1. Log in to Github
  2. Create a repository – give it a name and description.
  3. Grab the URL to the repo – it will look something like git@github.com:user/repo.git
  4. Ignore the instructions Github gives you, just grab that URL
  5. On your dev machine, switch to the Bzr branch you want to host on Github
  6. Run the command bzr dpush git+ssh://git@github.com/user/repo.git
  7. Wait for a result and that’s it. If you browse to Github page for your repo, you’ll see the source
  8. If you have troubles at step #6 run the command but with a -Derror switch. One common error is to not switch that “:user/repo.git to “/user/repo.git”

The above relies on you having Bzr installed (2.4 is the latest), the bzr-git plugin and also assumes you’ve already set up your SSH keys with Github

Branching from Github is just as easy:

  1. bzr branch git+ssh://git@github.com/user/repo.git feature_directory
  2. hack away
  3. push back to the same branch or a different one

Too easy!

Related to this – check out our new project “DisplayAnything” – an image gallery module for Silverstripe

Desk space available (Bapple)

Are you looking for a desk/office space in Surry Hills 3 minutes from Central station? Codem’s web collaborators Bapple are offering a desk space – here’s the low down:

“Offering a desk space to web/creative professionals. We’d also like to work with you if you choose! $86/wk + GST (or $395/mth all inclusive). The space comes with:

  • large desk
  • chair
  • broadband
  • A/C
  • Kitchen and Loo access
  • 24/7 access
  • sunlight + balcony

It’s a clean, bright office with friendly creative/web developer folk and no bills”

desk space available, Surry Hills, Sydney
(Desk on right will be on the left where white table is pictured.)

Contact Pete for more info on 0419144829 or visit the Bapple website