News for hackers. Stuff that matters.
Re:If I Could Make My Own GitHub by ramon156 on Friday May 01, 2026 @05:33AM (#47972777)
> you can just run the tests on the local machine, and you should be running them as part of your workflow.

aren't you describing why you'd want a pre-commit for this? you do not have to remember to do so, and new people do not need to learn it.

Re:If I Could Make My Own GitHub by Kwpolska on Friday May 01, 2026 @06:52AM (#47973251)
There are different workflows. I sometimes commit code that does not compile, so that I have a checkpoint. Or because it’s 16:59 and I want to leave the office (and I want to protect the code I wrote from hardware failure). I’d be annoyed if any pre-commit checks took more than 2-3 minutes, and for most projects, that is not enough to build and run any meaningful tests (especially remotely).
Re:If I Could Make My Own GitHub by skydhash on Friday May 01, 2026 @09:02AM (#47974301)
There’s a flag for toggling hook when committing. And you can rebase later to clean up the history.
Re:If I Could Make My Own GitHub by hasyimibhar on Friday May 01, 2026 @03:47PM (#47979335)
You can skip by running git commit --no-verify. I know this because I also hate pre-commit checks, and I will automatically use it when working with any codebase that has one.