We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I execute git commit -a -m "xxxxx", but pre-commit don't work
git commit -a -m "xxxxx"
pre-commit
npm install --save-dev pre-commit
package.json:
{ "script": { "bar": "echo \"bar\" && exit 0" }, "pre-commit": "bar" }
.git/hooks/pre-commit
#!/bin/bash ./node_modules/pre-commit/hook RESULT=$? [ $RESULT -ne 0 ] && exit 1 exit 0
at same time, has pre-commit* pre-commit.old pre-commit.sample* in .git/hooks
pre-commit*
pre-commit.old
pre-commit.sample*
.git/hooks
node version: v16.13.1
npm version: v8.1.2
@3rd-Eden @mcollina @kriskowal @alexindigo would you have a suggestion?
The text was updated successfully, but these errors were encountered:
@zhaoyiming0803 can you provide much context? It should work, I can't reproduce this issue
Sorry, something went wrong.
No branches or pull requests
I execute
git commit -a -m "xxxxx"
, butpre-commit
don't worknpm install --save-dev pre-commit
package.json:
.git/hooks/pre-commit
:at same time, has
pre-commit*
pre-commit.old
pre-commit.sample*
in.git/hooks
node version: v16.13.1
npm version: v8.1.2
@3rd-Eden @mcollina @kriskowal @alexindigo would you have a suggestion?
The text was updated successfully, but these errors were encountered: