Regenerate authorized_keys file in gitolite?

微笑、不失礼 提交于 2019-12-01 05:48:59

问题


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?

EDIT: found it!

gitolite trigger POST_COMPILE


回答1:


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.



来源:https://stackoverflow.com/questions/16004729/regenerate-authorized-keys-file-in-gitolite

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!