Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

pre-receive hook on bitbucket host for a repository

Arunabh Chowdhury
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 6, 2019

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.

1 answer

0 votes
Mikael Sandberg
Community Champion
June 11, 2019

Hi @Arunabh Chowdhury 

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events