我的哈士奇剧本:
"husky": {
"hooks": {
"pre-commit": "sh ./tools/githooks/pre-commit.sh"
}
}假设我正在做git commit -m "I want that text"。如何访问shell脚本中的提交消息?我试图在shell脚本中回显$HUSKY_GIT_PARAMS和$HUSKY_GIT_STDIN,但没有成功。
发布于 2019-09-10 04:38:24
https://stackoverflow.com/questions/57864037
复制相似问题