Is it possible to configure a git remote repo in such a way that everytime someone fetches it or pushes something, a custom message is displayed?
My intention is to give information about the branch structure. So in a way a light version of a git request-pull.
#git fetch
Welcome to projectx... commit your experimental changes @beta,
the more or less stable features @dev.
The stable and the testing branch will be maintained by "Mastermind"
Thats what I imagine. Is this possible? I've got full rights to the remote repo.
The closest I can find is the uploadpack.packObjectsHook config option. There you can specify a script which should print the message to the standard error and call git-upload-pack with same arguments.
I did not try if it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With