Skip to content

Commit

Permalink
docs: add tips for husky@5
Browse files Browse the repository at this point in the history
  • Loading branch information
chuanzong.lcz@alibaba-inc.com committed Mar 14, 2021
1 parent a023522 commit 96405bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ npm install git-commit-msg-linter --save-dev

**Just Install No Configurations Required** and your commit message is under linting from now on.

For husky@5 it will ignore the `.git/hooks/commit-msg` so a `.husky/commit-msg` need to add manually:

```sh
npx husky add .husky/commit-msg ".git/hooks/commit-msg \$1"
```

## Recommended Commit Message Format

```
Expand Down

0 comments on commit 96405bc

Please sign in to comment.