10 ms·
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 com
by all2 5mo 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).
- 0xffff2 5mo agoYou 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.
- all2 5mo agoOh, good to know. I haven't used them much, so I'm a bit ignorant as to how they work in larger projects.