git commit 提交代码时报错Stashing changes... [started] Stashing changes... [skipped] → No partially staged

简介: git commit 提交代码时报错Stashing changes... [started] Stashing changes... [skipped] → No partially staged

git commit 提交代码时报错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]

Running tasks for src/
/*.{js,vue} [failed]

Running linters… [failed]

× eslint --fix found some errors. Please fix them and try committing again.

解决方案

  1. 删除项目中.git文件中的pre-commit和pre-commit.sample文件
  2. 直接在commit后面加上–no-verify跳过eslint检查
git commit -m "提交页面备注" --no-verify


相关文章
|
2月前
|
开发工具 git C++
【git 实用指南】git下载、拉取 代码
【git 实用指南】git下载、拉取 代码
205 2
|
2月前
|
开发工具 git
【git 实用指南】git 上传代码
【git 实用指南】git 上传代码
35 2
|
2月前
|
开发工具 git
Git -- 代码上传错误 error: failed to push some refs to ‘git@gitee.com:JMFive/uni-shop2.git‘
Git -- 代码上传错误 error: failed to push some refs to ‘git@gitee.com:JMFive/uni-shop2.git‘
|
11天前
|
开发工具 git
git 拉取代码仓库代码报错(合并错误 refusing to merge unrelated histories)
git 拉取代码仓库代码报错(合并错误 refusing to merge unrelated histories)
19 0
|
15天前
|
数据可视化 开发工具 git
Git代码版本管理入门
Git代码版本管理入门
|
2月前
|
开发工具 C语言 数据安全/隐私保护
git提交代码到远端仓库的方法详解
git提交代码到远端仓库的方法详解
|
2月前
|
算法 开发工具 git
【git 实用指南】git 增加 本地代码 git add 相关命令和复杂情况需求
【git 实用指南】git 增加 本地代码 git add 相关命令和复杂情况需求
94 0
|
18天前
|
缓存 数据可视化 网络安全
Git命令大全
Git命令大全
52 1
|
22天前
|
开发工具 git
Git教程:深入了解删除分支的命令
【4月更文挑战第3天】
43 0
Git教程:深入了解删除分支的命令
|
2月前
|
存储 Shell Linux
【Shell 命令集合 文件管理】Linux git命令使用教程
【Shell 命令集合 文件管理】Linux git命令使用教程
34 0

相关实验场景

更多