Can I protect a git branch from delete?



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.


Comment actions Permalink
Official comment

I've submitted a feature request for the confirmation option, please vote for

Please sign in to leave a comment.