S
S
Stanislav Katkov2013-06-03 13:18:40
git
Stanislav Katkov, 2013-06-03 13:18:40

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

2 answer(s)
B
BaJlepa, 2013-06-03
@lunaticman

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.

N
noRerih, 2013-06-03
@noRerih

Maybe this will help. Surely there is not only force can be banned.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question