安装网上资料很够用了,Reference 里的链接只是记录一下alias 的格式,和生成rsa key 的方法而已,方便加入新授权成员时用。
Warning:
注意一点在安装时repos 的路径最好使用绝对路径,不然就算使用alias可能会能clone ,但是不能push的情况:
----------------------------------------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# variables that should NOT be changed after the install step completes
# ------------------------------------------------------------------------------
$REPO_BASE="/home/gitolite/repositories";
----------------------------------------------------------------------------------------------------------------------------------
需要重装和卸载gitolite是可以看 ~/src/gitolite/doc/install.mkd , mkd 是文本文件,摘录如下:
----------------------------------------------------------------------------------------------------------------------------------
Here's how to clean up, without losing your actual repositories.
All this is on the server. Note that the instructions are so long because
they're generic enough to fit any situation.
* Clean out the existing install
* edit `~/.ssh/authorized_keys` and delete all lines between `# gitolite
start` and `# gitolite end` inclusive.
* look in `~/.gitolite.rc` for 2 variables starting with `GL_PACKAGE_`.
If they are defined (and not just commented out), you need to clean
out all gitolite related files and directories from those two paths.
Just for reference, the defaults for a non-root install are 'conf' and
'hooks' in `$HOME/share/gitolite`, while for an RPM/DEB or root
install they should be in `/var/gitolite/` or some such.
If those variables don't exist or are commented out, ignore this step.
* look in `$PATH` for any gitolite programs and delete them also. A
good way to hunt them down is `which gl-auth-command`, and in the path
you find, delete all "gl-*" programs (perhaps after checking the list,
if the path you find happens to be /usr/bin or such!!)
Repeat this step until there are no more. I know of people who mixed
different install methods and had two, or even three, versions lying
around.
* make some temp directory (say "old"), and **move** the following
files/directories into it: `~/.gitolite`, `~/.gitolite.rc` and
`~/repositories/gitolite-admin.git`. If there's nothing you need to
salvage from them you can delete them too.
* if you used an RPM/DEB install, remove the package also.
* Now install a fresh copy of gitolite using whatever method you prefer.
(If you used a different method earlier and did not clean things out
properly per the instructions given above, expect trouble).
----------------------------------------------------------------------------------------------------------------------------------
Reference:
https://writer.zoho.com/public/6b6a49b6dcbb8205336873dd09e1b3517a451cd1e1176acbfbf7dc164d337abff286cc4d94bd246d