master TOC | chapter TOC | support
IMPORTANT WARNING -- IGNORE AT YOUR PERIL: if you want to use this method
you had better know the password to the hosting user on the server, or be able
to su to it from root, just in case you manage to lock yourself out by
messing with the keys.
NOTE: This method is exhaustively described in the tutorial, if you're interested. (That tutorial is by someone else but it's nice enough for me to link it here).
On your workstation:
~/.ssh/id_rsa.pub file to /tmp/YourName.pub on the server.
(The name of this file determines your gitolite username, so if you leave
it as id_rsa.pub, your gitolite username will be id_rsa, which may not
be what you want).On your server, as git (the "hosting user"), first check if $HOME/bin is
on the default PATH. If not, fiddle with the .bashrc or .bash_profile or
similar files and add it somehow. Then:
git clone git://github.com/sitaramc/gitolite
gitolite/src/gl-system-install
# defaults to being the same as:
# gitolite/src/gl-system-install $HOME/bin $HOME/share/gitolite/conf $HOME/share/gitolite/hooks
# to upgrade gitolite, repeat the above commands. Make sure you use the
# same arguments for the last command each time.
gl-setup /tmp/YourName.pub
Note: if you're running non-interactively (i.e., cannot tolerate an editor popping up), insert a "-q" before the argument to gl-setup.
On your workstation:
git clone git@server:gitolite-admin