Re:Tips for Intermediate Git Users
by Fede_V on Monday January 12, 2015 @03:21AM
(#8872922)
Is there some kind of git plug in/linter that will check for commit style before accepting a commit? Basically, linting the commit messages.
[ Parent
| on HN ]
At my current gig we use a set of git hooks, and the pre-commit hook enforces the git comment style, which performs integration with bugtracking/timetracking. We wrote our own and it's just a couple of regexes tied to a couple of warnings.
Look in any git project's .git/hooks/ directory for some sample scripts.
a pre-commit git hook?
An example for jquery style commits is https://www.npmjs.com/package/commitplease