HowTo distribute a hook with the reposity.
- From
- John P. Hartmann <jphartmann@gmail.com>
- Date
- Dec 28, 2016, 01:34 UTC
- Message-ID
- <6e228b75-0208-63e8-b4e8-70905e3f9ea3@gmail.com>
I would like a hook in .got/hooks to be made available to all who clone or pull a particular project. I'd also like the hook to be under git control (changes committed &c). I added a hook, but git status does not show it. Presumably git excludes its files in .git/ from version control lest there be a chiken-and-egg situation.
Is there a way to achieve this? Or a better way to do it?
Thanks, j.