I need to implement the policies described below
https://git-scm.com/book/en/v2/Customizing-Git-An-Example-Git-Enforced-Policy
Usually this is done by edit the server-side update hook.
But I cannot get the specific user who do the push operation. Maybe it because GitLab ask users to share the same git account to do git server access.
How can I control some users not to push any change to some directories in a branch by using GitLab?