husky - commit-msg hook exited with code 1 (error)

报错:

✖ subject may not be empty [subject-empty]

✖ type may not be empty [type-empty]

✖ found 2 problems, 0 warnings

ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint

husky - commit-msg hook exited with code 1 (error)

husky - commit-msg hook exited with code 1 (error)_第1张图片

这种情况下如果你push就会报

Everything up-to-date

解决方法:

git commit -m "fix: xxxx"

commit 的信息需要加 fix 冒号 空格

然后再pull、push即可

还有一种报错信息为

error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
 

解决方法:

git config --global http.version HTTP/1.1

你可能感兴趣的:(vue,vue.js,前端)