husky——The '.husky/pre-commit' hook was ignored because it's not set as executable

2024-08-15 09:27:27 浏览数 (2)

前言

系统:mac

代码语言:javascript复制
hint: The '.husky/pre-commit' hook was ignored because it's not set as executable.
hint: You can disable this warning with `git config advice.ignoredHook false`.
hint: The '.husky/prepare-commit-msg' hook was ignored because it's not set as executable.
hint: You can disable this warning with `git config advice.ignoredHook false`.
hint: The '.husky/commit-msg' hook was ignored because it's not set as executable.
hint: You can disable this warning with `git config advice.ignoredHook false`.

内容

解决方案

代码语言:javascript复制
chmod ug x .husky/*

0 人点赞