Gitolite is a wrapper around a base git installation which facilitates the secure management of project repositories and of the user privileges governing access to those repositories.
Install the package that contains Gitolite.
In your workstation set up new public keys
Running this command will create a new pair of private and public key.
Create a copy of the public key.
Send the public key to your server by running the command shown below.
In your server set up Gitolite
This command will setup Gitolite using the public key you just sent to the server.
In your workstation set up Gitolite
In your workstation clone the .git directory anywhere you want (preferably your home directory) to administrate Gitolite outside a server.
Use your favorite text editor and open the file ~/gitolite-admin/conf/gitolite.conf
Add to that file the name of a git repository which Gitolite will manage. It should look something like this:
Make commit of what you just changed.
Push the changes to the server.
In your workstation, if you don't have a git repository, create one
Create a dotfiles directory.
Initialize a git repository in the dotfiles directory.
We will add the remote for this new .git. In this case we point the server in which Gitolite was installed, and the repository name we sent before by pushing data via gitolite-admin.
Add some files to your new repository.
Create a commit.
Push the files to the server. In this case it's being pushed to the server in which Gitolite was installed.