[英]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.