AFAIK there is no way to directly share hooks and configs, they are defined
per repo and each clone of a repo it's a repo itself. But if you have a
central repo where everyone share it's changes, then you can enforce the
things that you want before they push to that repo.

On the other hand (for example) for php there is grumphp, when you install
it he puts himself in a git hook. Then you can put it like a dependencie in
your project (it works well when you have another php dependencies) to
"enforce" the use of that hook.

El mié., 21 de jun. de 2017 a la(s) 07:16, dheeraj m <dheeraj...@gmail.com>
escribió:

> Hi,
>  We would like to modify the .git/config file globally for entire project
> in the git repository.
> We would like this custom config get downloaded for all the users who does
> git clone or git pull for this project. Is there a way to do so?
> If not is there a way to configure git hooks(commit hooks) to be modified
> globally for project so that is effective for each and every user who does
> git clone locally in their system?
> Thanks and Regards
> Dheeraj M
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to