It’s easy to host git repositories. There are two hosted services that I know of: Both services are free, but only conditionally. repo.or.cz is free for open-source projects; github.com – which allows the creation of private repos – is free if you use less than 100MB of space. Private repos are not available for the free accounts, however. If you want to use your own machine, it’s quite easy to set up git-daemon for read-only access to repos. It listens on port 9418, and serves content using git’s native transport protocol (the git scheme in HTTP URIs). This allows anyone to clone and fetch from the repo. To push, ssh access is necessary – and this doesn’t involve git-daemon in any way. Generally one would set up a bare repo in a directory that git-daemon is aware of, and push (from a “development” repo) to it when ready to publish. This way it’s easy to control when code becomes visible, and which branches are public. |