简体   繁体   English

为什么 git 命令只返回“错误:守护进程终止”

[英]Why do git commands just return 'error: daemon terminated'

I run git add.我运行git add. and then it does nothing for a while, and then says error: daemon terminated .然后一段时间什么都不做,然后说error: daemon terminated This happens with all commands, not just git add How do I fix that?所有命令都会发生这种情况,而不仅仅是git add我该如何解决? git status does show a bit of information about changes to be committed, but still shows the same error git status确实显示了一些关于要提交的更改的信息,但仍然显示相同的错误

There is indeed a daemon starting with Git 2.34 (Q4 2021) , for the fsmonitor , using the Simple-IPC protocol .确实有一个以Git 2.34 (Q4 2021)开头的守护进程,用于fsmonitor ,使用Simple-IPC 协议

Check the version of Git used and, in case this is is a bug, try and upgrade it to the latest 2.38.1.检查使用的 Git 的版本,如果这是一个错误,请尝试将其升级到最新的 2.38.1。

(Which is closed to what the OP Logos King mentions in the comments : "simply uninstalling and reinstalling git fixed the issue") (这与OP Logos King 在评论中提到的关闭:“只需卸载并重新安装 git 即可解决问题”)

Check also the value of git config core.fsmonitor (done from within your repository folder).还要检查git config core.fsmonitor的值(在您的存储库文件夹中完成)。 Try and set it to false to see if the issue persists.尝试将其设置为false以查看问题是否仍然存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM