I'd like to restrict myself from creating branches from some other branches. Basically, I want to be able to create a new branch only from master.
I know there are hooks available, but nothing seems to be prior to checkout.
Also, I don't mind if there's just a message showing up in my console instead of completely being unable to create the branch. Even simple warning message will be enough.
Is there any way to do that?
PS: I'm only talking local git, not server-side which could prevent me from pushing