Skip to content

Instantly share code, notes, and snippets.

@Alex-D
Last active April 4, 2022 02:23
Show Gist options
  • Save Alex-D/6db62601b8ede550c3520bf26233a45f to your computer and use it in GitHub Desktop.
Save Alex-D/6db62601b8ede550c3520bf26233a45f to your computer and use it in GitHub Desktop.
Check commits sticks to Git Karma commit
# http://karma-runner.github.io/1.0/dev/git-commit-msg.html
bash -c "! git log -100 --pretty=format:%s | egrep --color=auto -v '^(((feat|fix|docs|style|refactor|test|chore)(\(\w+\))?:\s)|Merge).*'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment