Regenerate authorized_keys file in gitolite?

后端 未结 1 1060
独厮守ぢ
独厮守ぢ 2021-01-14 03:04

Is it possible? My authorized_keys file was wiped, updating gitolite admin rules only appends to file. Is it possible to regenerate the whole file based on gitolite config?<

1条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-14 04:00

    With gitolite g3 (the version 3.x), a simple:

     gitolite setup
    

    (executed on the server) is enough.

    See src/lib/Gitolite/Setup.pm:

    Setup gitolite, compile conf, run the POST_COMPILE trigger (see rc file) and propagate hooks.

    This one command is easier to remember than gitolite trigger POST_COMPILE.

    0 讨论(0)
提交回复
热议问题