post image May 24, 2022 | 1 min Read

How to pre-commit hook

How to create pre-commit hooks in git
- repo:
  rev: "v1.71.0" # Get the latest from:
    - id: terraform_fmt
    - id: terraform_docs
- repo: local
    - id: generate_readme
      pass_filenames: false
      name: Generate
      entry: ./
      language: script

author image

Jan Toth

I have been in DevOps related jobs for past 6 years dealing mainly with Kubernetes in AWS and on-premise as well. I spent quite a lot …

comments powered by Disqus