I'm on Windows using git version 2.12.2. I ran the following command within a git bash shell:
$ git daemon --reuseaddr --verbose --informative-errors --base-path=/c/ /c/
On another git bash shell, on the same machine that's serving, I tried pushing to git://<host>/foo.git
from a test repo and got:
[2236] unable to set SO_KEEPALIVE on socket: No such file or directory
What can I do so that SO_KEEPALIVE
can be successfully set?
The unauthenticated git protocol on port 9418 is no longer supported occurs because GitHub has stopped accepting the deprecated key and signature types, ciphers, and MACs, and the unencrypted Git protocol from March 15, 2022. The issue can be resolved by changing the protocol from Git to HTTPS in the . gitconfig .
git-daemon is a simple server for git repositories. The daemon makes git repositories available over the git:// protocol, which is very efficient, but insecure.
The Git protocol is often the fastest network transfer protocol available. If you're serving a lot of traffic for a public project or serving a very large project that doesn't require user authentication for read access, it's likely that you'll want to set up a Git daemon to serve your project.
Looking at https://github.com/git-for-windows/git/issues/304 this is a known issue that's not yet solved.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With