git使用问题记录
问题:
由于错误,无法检查工作树中是否有未合并的文件。
> running pre-commit hook: lint-staged
Stashing changes… [started]
Stashing changes… [skipped]
→ No partially staged files found…
Running tasks… [started]
Running tasks for *.{js,jsx,vue,ts,tsx} [started]
vue-cli-service lint [started]
vue-cli-service lint [failed]
→
Running tasks for *.{js,jsx,vue,ts,tsx} [failed]
→
Running tasks… [failed]
✖ vue-cli-service lint found some errors. Please fix them and try committing again.
问题原因:合并的时候代码风格检查报错;
解决方案:git commit -m “合并异常” --no-verify
解决原理: 提交的时候不校验风格