In our team we always do code reviews, through pull requests on feature branches. After a code review, we merge the feature branch to the develop branch (using the Merge button in the Bitbucket web interface).
Sometimes a developer accidentally commits and pushes directly on the develop branch (forgot to create a feature branch).
To avoid such accidents: How can I make the develop branch read only in IntelliJ?