Benjamin Curtis

Speculations on Web Development

Gitosis for Protected Git Repositories

| Comments

A number of Rails Kits customers asked for access to the git repository for the Kit they purchased, and I considered using GitHub for that, but this kind of usage doesn’t line up well with GitHub, since I have lots of users who need only read-only access to a few repositories. Since I already have the VPS set up anyway, I thought I’d give gitosis a shot.

Following this fantastic gitosis guide, I was ready to serve my git repository for the SaaS Rails Kit to my customers – and only to my customers :) – in no time. Now when I have a new customer wanting git access, I just add a public key to my local gitosis-admin clone, push it to my VPS, and I’m done.