Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have configured git config --system init.templatedir /path/ on our system to automatically create required githooks for each new repository created via git init. However, there is another group of users which do not need this custom templatedir (and may even not have read permissions for the set /path/). It could be individually deactivated for each user via git config --system init-temlatedir /usr/share/git-core..., but it would need to be remembered for any user beeing added on the system.

Is it possible to set a git config for a group of users (something "between" --system and --global)?

The only solution I see for our situation is to use --global for each user, but this has the potential of forgetting to set the option if a new user was created and therefore missing to copy our hooks in new repositories.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.