Skip to content
Permalink
Browse files

Add configuration instructions

  • Loading branch information...
robotsquidward committed Aug 12, 2019
1 parent cf46432 commit e059232613bcfc65f7897ed88a7f2133c207966f
Showing with 13 additions and 2 deletions.
  1. +13 −2 README.md
@@ -1,2 +1,13 @@
# pre-commit-demo
Demo repo to illustrate custom Git Hooks.
# `pre-commit` demo repo

Demo repo to illustrate [creating custom Git Hooks](https://ajkueterman.dev/posts/intro-to-custom-client-git-hooks-pre-commit/).

## Repo Setup

To configure this repo in order to test the included `pre-commit` hooks, run this command from the root directory:

```bash
git config core.hooksPath .githooks
```

Any commits after that should run the custom script and block commits accordingly.

0 comments on commit e059232

Please sign in to comment.
You can’t perform that action at this time.