According to the developer, this tool will help ensure good Git behavior on your feature branches so undesired commits never make it to master.
Git Cop can be wired in as a Git Hook or be added as part of your build process so feature branch builds fail if commits are bad. Branch code reviews be focused on architecture and high level discussions while Git Cop takes care of reviewing Git commit behavior. All Git Cop checks are completely customizable.
- Enforces a Git Rebase Workflow.
- Enforces a consistent Git Commit Style.
- Enforces good commit subjects with consistent prefixes, suffixes, and lengths.
- Enforces good commit messages where subject and body are properly separated.
Requieres Ruby 2.4.1
You can have more information here.