Drop Commit is disabled in WebStorm's Git

Viewed 146

The WebStorm's Git context menu has "Drop Commits" entry disabled:

This happens when the default branch is named "master". If the name is "main" – everything is OK.

How can I make this available when the branch name is "master"?

1 Answers

Rebase-based operations are disabled for commits pushed to a protected branch. master is protected by default, that is why it is disabled.

The list of protected branches can be configured in Settings/Preferences | Version control | Git using semicolon ; as a separator (e.g. master;main).

Actually the reason why the action is disabled is written on the status bar, lower-left corner on the screenshot, but that is not very noticeable.

Related