Can I protect a git branch from delete?

Answered

Hi,

I'm working with Git and Git Flow. It is easy do delete the master or develop branch:

- a simple click on the wrong button

- every time you merge develop with your current branch, there is a tooltip with a "delete develop" link: it's evil ;-)

- etc.

Is there a way to protect myself from deleting some branches? At least, there could be a confirmation dialog for every delete.

Thx.

2 comments
Comment actions Permalink
Official comment

I've submitted a feature request for the confirmation option, please vote for https://youtrack.jetbrains.com/issue/IDEA-151728.

Please sign in to leave a comment.