A Git hook to prevent committing directly to main

I'm not supposed to commit directly to main, but I often forget, so I have the computer remember for me.