Skip to main content
← blog / phpstorm
Dec 12, 2018  ·  #phpstorm  ·  1 min read

PhpStorm protected branches feature

Recently, while working on a little project, I decided to clean up some of the commits on the master branch before pushing it to Packagist. To be lazy, I decided to use PhpStorm's interactive rebase tool instead of the good ole command line.

BUT I COULD NOT! And I started to go mad.

It turns out, PhpStorm has a protected branch feature. This stops you from doing silly things on a branch with the VCS capabilities you have available. When I removed master from these settings, I could reword and rebase to my delight.

I still highly recommend configuring this in your repository settings on Bitbucket, GitLab, GitHub, etc. But it is still a neat (and unknown to myself) feature.

Thanks for reading

I write about Drupal, PHP, and the quiet infrastructure behind large sites — caching, config, and testing. New posts land every week or two.