I want to implement read/write access on some files inside a repository. I need to write a pre-receive custom hook to implement this. Any detailed documentation would be helpful.
Welcome to the Atlassian Community.
Have a look at Git hooks for examples of how to write a hook. You can use any scripting language that you want, most of them are using either Perl or shell script. Here some other resources too, https://githooks.com/ and https://hackernoon.com/how-to-use-git-hooks-in-your-development-workflow-a94e66a0f3eb. The last one also shows how to store your hook in the repository so you do not have to manually distribute them to all your developers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.