Adding pre-commit hook

* This hook checks if you're about to commit to a branch you shouldn't be, and warns the user that they're doing something they shouldn't.