Using npm:
# Install dependency
$ npm i
# this case uses husky@^4.2.5
# its option in package.json is
```json
"husky": {
"hooks": {
"pre-commit": "node script"
}
},
# step1
# modify the ./test.js
# step2
$ git add .
# step3
$ git commit -m 'create git conflict'
# now you can see the git commit warning tip in your bash