I went to GitHub today to make a public mirror of a Git repository I use to track my dot files. You know, the unix configuration files in my home directory. Apparently, GitHub no longer lets me create public repositories on my free account (this was some temporary glitch, the "New Repository" button reappeared the next day). Fortunately, my Git repository is housed on my VPS and Git comes with a server built in that serves up your repositories using the git:// protocol. I have the server managed with supervisord. I created a file called /etc/supervisor/conf.d/gitd.conf:
[program:gitd] command=/usr/bin/git daemon --base-path=/path/to/my/git/repos
By default, git-daemon serves up your repositories read-only, and only the ones with a file called 'git-daemon-export-ok' in them.
So my dotfiles repository is now available to the public, though this very server here: git://deliciousrobots.com/dotfiles.git . You can clone the repository like this:
$ git clone git://deliciousrobots.com/dotfiles.git
The next thing I would like to do is set up a web interface, so people can browse the repository at their leisure without having to clone it locally. I don't run apache, as a rule, on my VPS, just nginx. So, that might take a little figuring out.
UPDATE : The dotfiles repo is now available directly on GitHub.

