git pre-push hook add commit code example
Example 1: git commit and push command
git: git add . git commit -m "$m" git push -u origin master
Example 2: how to ushow to add hadolint as a pre-commit hook
- repo: https://github.com/petalmd/dockerfile-pre-commit
rev: '' # Use the revision rev you want to point at
hooks:
- id: dockerlint