Forums

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

Add Pre-commit to bitbuket

Ramesh Ramachandran
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!
September 17, 2018

Hi ,

 

I have created a pre-commit hook inside .git/hooks/pre-commit . Now I need to add this hook to bitbuket repo so whenever some other engineer clone repo they will get the precommit hook as well. Please let us know how can I add pre-commit hook to bitbucket.

 

Thanks

1 answer

0 votes
Aron Gombas _Midori_
Community Champion
September 17, 2018

Git does not automatically clone hooks when cloning a repository! I have seen workarounds for that, but as far as I know, Git still doesn't offer this feature.

If Git doesn't allow this, then I am affraid, Bitbucket will not, either.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events