Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do git commands just return 'error: daemon terminated'

I run git add . and then it does nothing for a while, and then says error: daemon terminated. This happens with all commands, not just git add How do I fix that? git status does show a bit of information about changes to be committed, but still shows the same error

like image 552
Logos King Avatar asked Nov 15 '25 15:11

Logos King


1 Answers

There is indeed a daemon starting with Git 2.34 (Q4 2021), for the fsmonitor, using the Simple-IPC protocol.

Check the version of Git used and, in case this is is a bug, try and upgrade it to the latest 2.38.1.

(Which is closed to what the OP Logos King mentions in the comments: "simply uninstalling and reinstalling git fixed the issue")

Check also the value of git config core.fsmonitor (done from within your repository folder). Try and set it to false to see if the issue persists.

like image 133
VonC Avatar answered Nov 18 '25 11:11

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!