user419017
user419017

Reputation:

Regenerate authorized_keys file in gitolite?

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

Upvotes: 3

Views: 954

Answers (1)

VonC
VonC

Reputation: 1326994

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.

Upvotes: 6

Related Questions