Hacker News new | ask | show | jobs
by all2 50 days ago
Can't you prevent pushing from the client side with pre-commit hooks? I would expect a hook to fire on the developer's computer that prevents them from even committing/pushing (unless they nuke the hook in their local repo copy).
1 comments

You have to manually install hooks in your local repository. They aren't propagated as part of the repo. Git has intentionally made hooks require a very explicit opt-in.
Oh, good to know. I haven't used them much, so I'm a bit ignorant as to how they work in larger projects.