> running pre-commit hook: npm run precommit
> ant-design-pro@4.5.0 precommit /root/antdpro_shop
> lint-staged
✖ usage: git stash list [<options>]
or: git stash show [<stash>]
or: git stash drop [-q|--quiet] [<stash>]
or: git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]
or: git stash branch <branchname> [<stash>]
or: git stash [save [--patch] [-k|--[no-]keep-index] [-q|--quiet]
[-u|--include-untracked] [-a|--all] [<message>]]
or: git stash clear
↓ Skipped because of previous git error. [SKIPPED]
↓
✖ lint-staged failed due to a git error. [SKIPPED]
↓
✖ lint-staged failed due to a git error. [SKIPPED]
✖ lint-staged failed due to a git error.
Any lost modifications can be restored from a git stash:
> git stash list
stash@{0}: automatic lint-staged backup
> git stash apply --index stash@{0}
把项目的.git目录的hooks文件清空
再尝试提交文件