Answer the question
In order to leave comments, you need to log in
bitbucket: how to disable push to master branch?
Bitbucket has a great ability to create pull requests, which can be used to review each other's code. But from time to time someone forgets and pushes directly to the master, and from the master it is immediately deployed to production ...
Perhaps someone knows how to make an update hook on bitbucket and forbid pushing to the master branch?
Answer the question
In order to leave comments, you need to log in
You can prevent everyone from uploading to the main repository. Leave only the opportunity to update from it. Let them work in their forks of the main repository and make pull requests to the main one.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question