Believe the hook that failed
When a pre-push hook fails, the useful move is to read the failure and fix it. Skipping the hook just moves the surprise to a worse moment.
I have wanted to skip a Git hook. The message is long, the change felt small, and the hook was "probably complaining about something old." Every time I have given in to that feeling, I have paid for it later, usually in a worse environment than my laptop.
The lesson is simple: believe the hook that failed. Read the output. If the hook is wrong, fix the hook. If the test is wrong, fix the test. If your change broke something, fix the change. What I do not do is turn the hook off so I can push.
Why the skip is so tempting
Local hooks fail for messy reasons. A snapshot is stale. A fixture expects an old shape. A test shares state with another test and only fails on your machine. Those are real frustrations. They are also exactly the reasons the hook exists. CI will hit the same mess, or a user will.
A hook that failed on an unrelated test is still information. It is telling you the suite is brittle, or that it was already red, or that your branch does not include a fix you thought you had. That is useful on your desk. It is expensive after a tag.
What I do instead
I rerun the failing command outside the hook, with the same arguments, so I can see the full output. I check whether `main` already fails in the same way. If it does, the work is to repair the suite, not to negotiate with the hook. If it does not, the work is in my change, even if the connection looks indirect.
I do not add `--no-verify` to muscle memory, and I do not set `core.hooksPath` to a hole. Those escapes are how a whole branch quietly bypasses the only local gate the repo has.
There is a narrow recovery case, the same way there is a narrow case for an `--force` push to a branch you alone are using. It should be rare, conscious, and followed by a fix. It should not be how you finish a normal afternoon.
Make the failure cheaper to trust
Hooks earn trust when they fail clearly. A wall of unrelated logs trains people to skip them. If I maintain the hook, I keep it short, I print the command that failed, and I keep the slow jobs in CI. I wrote about the split in [Catch mistakes in a Git hook before CI ever runs](/journal/catch-mistakes-in-a-git-hook-before-ci-ever-runs).
The hook is a hand brake. It is supposed to annoy you at the moment you are in a hurry. That is the moment a broken test is trying to tell you something.