如何修复“绒毛阶段”因GIT错误而失败。
由于某种原因,绒毛阶段持续失败,显示出绒毛段,这是由于git错误
。
使用版本v13.0.3。
✖ lint-staged failed due to a git error.
Cleaning up temporary files...
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}
For some reason, lint-staged keeps failing, showing the lint-staged due to a git error
.
Using version v13.0.3.
✖ lint-staged failed due to a git error.
Cleaning up temporary files...
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}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我遇到了一个类似的问题,事实证明这是由文件权限引起的。我能够通过修复权限来解决问题。
我使用以下脚本将其更改为所有文件。
执行此命令后,解决了问题。
I encountered a similar problem, which turned out to be caused by file permissions. I was able to resolve the issue by by fixing the permissions.
I used the below script to change it for all files.
After executing this command, the issue was resolved.
解决了这个问题。我检查了我的
.git
文件夹,并找到了lint-staged_unstaged.patch
file。我删除了这一点并解决了问题。Solved this issue. I checked my
.git
folder and found alint-staged_unstaged.patch
file. I deleted that and resolved the issue.首先,您需要检查git日志文件,并查看它避开您的消息,例如,这是我的git日志:
挂钩看到问题是关于标题(提交消息)超过100个字符的标头式长度,因此您应该使其更短。
first you need to check the git log file, and see the message it gaves you, for example, this was my git logs :
as you can see the problem is about the header (commit message) exceeding the header-max-length of 100 characters, so you should make it shorter.
运行以下命令解决的问题:
my problem fixed by run the following command: