Gitolite allows four types of customizations you can develop for your site. This might sound somewhat intimidating, but in practice most people use only two of them. We'll describe each of them now.
Gitolite allows remote users to run some specific commands on the server, in the form ssh git@host command-name
. Commands need to be enabled before they can be used remotely; see the section on making changes to the rc
file in Chapter 8, Allowing Users to Create Repos. One way to look at this is to view it as giving users a very restricted shell to use, which allows only specific commands to be executed.
We've already encountered some Gitolite commands, the perms
and D
commands in Chapter 8, Allowing Users to Create Repos, for instance, and info
and help
in earlier chapters. Gitolite ships with more than twenty commands, although only five are enabled for remote use by default. A few more are listed in $HOME/.gitolite.rc
, but left disabled by being commented...