No nonsense GIT, part 1: git-remote-branch

Software development 12 Comments »

We’re just starting to use GIT at Defensio and although there are plenty of great resources like the Peepcode video and Jean-François Couture’s blog, the learning curve (from SVN) can be a little rough. The problem is that GIT is very powerful, and probably too powerful for a small shop like ours. This unfortunately leads to some complexity that we’d rather not have to deal with, especially since we don’t need all the fancy features.

In an effort to simplify our workflow, we started to build a few scripts that automate complex tasks. My plan is to post them on my blog for your own benefit. If they’re useful for us, they should be useful for other people too.

The first script I’m posting is git-remote-branch. It is meant to simplify the process of creating and deleting remote and local tracking branches. Instead of having to execute multiple commands, easy to remember one-liners are now enough. (hey! we’re lazy!)

Check this out:

This command creates an experimental branch on a remote server (’origin’ by default) from the one you’re currently sitting in, then a local tracking branch. When that’s done, it checks out to the newly created local branch.  You can then pull and push as you wish.

This command does the same as the previous one, but creates experimental on ‘origin2′ instead of ‘origin’.

When you’re done dealing with the remote/local branch combo you created, you can delete both in one go:

The script will delete the remote branch, then check out “master” if you’re still sitting in “experimental”. The local “experimental” branch is then deleted.

git-remote-branch can be downloaded here. Make sure to chmod +x it before executing it. For the record, it’s written in Ruby.  Let me know if it’s useful for you!

Speaking at SXSW and MySQL Conf

Speaking appearances No Comments »

I’m happy to announce that I’ll be presenting at 2 great conferences in the upcoming months.

In March, I’ll be in Austin, Texas to present at South by Southwest. I’m on an expert panel with a bunch of great people: Leah Culver (founder of Pownce), Avi Bryant (co-founder of DabbleDB) and Ari Steinberg (engineer at Facebook). The topic is Web Service APIs Your Mom Will Love Building Developer-friendly Web Service APIs.

In April, I’ll be at MySQL Conf in Santa Clara, California to present alongside my buddy Morgan Tocker of MySQL. The topic of our presentation is Exploring Amazon EC2 for Scale Out Applications.

Both should be very interesting talks on subjects that I’m very passionate about. And if you want to catch up in Austin or in the Valley, make sure to drop me an email!

Network Solutions stealing domain names!

Miscellaneous, Sites I like, Startup and business, Technology No Comments »

It’s official, Network Solutions is stealing domain names from its customers (proof here and here).   EVERY domain searched for is automatically registered by the company only seconds later.  That’s just one more reason to not trust registrars when you’re looking for the perfect domain name.

If you’re not already aware of that, I’m the author of a nifty little website called Ajaxwhois.  It allows you to lookup any domain name (including .ca, .uk and so on) and to perform whois queries on them.  All of this is, of course, ajaxified to the fullest extent.

The good thing is that Ajaxwhois does NOT send queries to ANY domain registrar and I certainly won’t steal the domain names you search for.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in