怎样完全删除gitolite并保持实际的代码库

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).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值