diff --git a/.github/README.md b/.github/README.md index 7ba0d5b58..29bee5fd1 100644 --- a/.github/README.md +++ b/.github/README.md @@ -25,13 +25,14 @@ Add a hook: ```sh npx husky add .husky/pre-commit "npm test" +git add .husky/pre-commit ``` Make a commit: ```sh -$ git commit -m "Keep calm and commit" -# `npm test` will run +git commit -m "Keep calm and commit" +# `npm test` will run every time you commit ``` _For more use cases (project in sub-directory, custom directory, CI support, ...), see documentation._ diff --git a/README.md b/README.md index e6bfd767a..fd8c11078 100644 --- a/README.md +++ b/README.md @@ -23,12 +23,13 @@ Add a hook: ```sh npx husky add .husky/pre-commit "npm test" +git add .husky/pre-commit ``` Make a commit: ```sh -$ git commit -m "Keep calm and commit" +git commit -m "Keep calm and commit" # `npm test` will run ```