I have ready many articles about protecting remote branches...
I however would like to capture in a git hook the following LOCAL repo command:
git branch -d abranchthatshouldnotbedeleted
I would like to hook that command and analyze it against an branch list file of "protected branches" that I made and do a simple check to allow or deny the delete.
Certain branches of mine are now locked in a stated where they are managed now and must be protected.