Given the following scenario:
o-o- ... -o-o-o master
| |`-o-o feature1
| `-o-o feature2
| \
`-o-o-o-o-o-o-o-o develop
I have a master where all new branches should originate from. While developing stuff everythin is deployed to the develop branch which is rolled out on the test server.
Because it did happen from time to time in the past i want somehow deny branching from anything except master. Is that possible via some git hook?