Skip to content

Commit 9cdda8e

Browse files
committed
docs: typo
1 parent 3415f44 commit 9cdda8e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ Add a hook:
2525

2626
```sh
2727
npx husky add .husky/pre-commit "npm test"
28+
git add .husky/pre-commit
2829
```
2930

3031
Make a commit:
3132

3233
```sh
33-
$ git commit -m "Keep calm and commit"
34-
# `npm test` will run
34+
git commit -m "Keep calm and commit"
35+
# `npm test` will run every time you commit
3536
```
3637

3738
_For more use cases (project in sub-directory, custom directory, CI support, ...), see documentation._

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ Add a hook:
2323

2424
```sh
2525
npx husky add .husky/pre-commit "npm test"
26+
git add .husky/pre-commit
2627
```
2728

2829
Make a commit:
2930

3031
```sh
31-
$ git commit -m "Keep calm and commit"
32+
git commit -m "Keep calm and commit"
3233
# `npm test` will run
3334
```
3435

0 commit comments

Comments
 (0)