How to log all users' git command(pull/clone/push…) in Gitlab server?
I want to statistic all command sent to gitlab server to get these info, including time、duration、ip、 command(pull/clone/push)、repository。 I have already tried two methods, but not succeed:
-
access log
production.log doesn't log command over ssh -
hook
git pull/clone can't call hook function
What else can I do?