Git 上传失败问题

阅读 66

2022-04-29

提交时出现

husky > pre-commit (node v16.14.2) Stashing changes... [started] Stashing changes... [skipped] → No partially staged files found... Running linters... [started] Running tasks for src/**/*.{js,vue} [started] eslint --fix [started] eslint --fix [failed] →

相关问题,是因为git会有代码检测的功能,有error就不可以提交,为此可使用

git commit -m "(提交备注)" --no-verify 

(如git commit -m "(学校放假 PLUS)" --no-verify)

可以让git忽略检测相关提交的代码问题,直接放行

精彩评论(0)

0 0 举报