Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I only heard of pre-commit hooks like 20 times in the wild and I really want to emphasize how badly that number should be 10x larger. Got a team completely unaware they existed once.


I really do wish that git itself would like check for a `.githooks` directory and prompt if it should set `core.hooksPath` to that path (probably would need to notify on pull when any files in it changed for security reasons)

I would also love if it detected a `.gitmessage` for message the message template without needing to set it up for each repo, but that is a different matter.


They are just not convenient to use since they are per repo and not shared via clone


They can be configured globally with core.hooksPath or init.templatedir git config options.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: