Gitolite的ssh别名和一些使用记录

安装网上资料很够用了,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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值