Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用参数获取价值并将它们用于预推挂钩。如何获得?以及如何为 HUSKY_GIT_PARAMS 和 HUSKY_GIT_STDIN 设置环境变量?
下面是我的 .huskyrc 文件:
{ "hooks": { "pre-commit": "lint-staged", "Pre-push": "echo HUSKY_GIT_PARAMS run test" } }