Ari*_*rif 6 git git-commit lint-staged git-husky
当我执行git commit -m "commit message"命令时,lint-staged 显示此错误:
我在 package.json 中的配置:
"husky": {
"hooks": {
"pre-commit": "npm run validate && lint-staged"
}
},
"lint-staged": {
"*.+(js|ts|tsx)": [
"eslint"
],
"**/*.+(js|json|ts|tsx)": [
"prettier --write"
]
},
Run Code Online (Sandbox Code Playgroud)
它在mac上运行良好,但windows-10显示此错误。谁能告诉我windows出了什么问题?
鉴于显示的消息:我认为这个钩子运行
git stash -k(隐藏索引中没有的所有内容)git addgit stash pop在您的 Windows 计算机上,您碰巧处于以下配置中:
“修复”是:
git stash -kgit stash pop| 归档时间: |
|
| 查看次数: |
4785 次 |
| 最近记录: |