我在Windows上使用Git 2.9.在使用git守护程序创建演示Git训练时,我遇到了SO_KEEPALIVE错误.
@Server
$ git daemon --base-path=. --enable=receive-pack --verbose
[18608] Ready to rumble
[18108] Connection from 127.0.0.1:61111
[18108] unable to set SO_KEEPALIVE on socket: No error
[18108] Extended attributes (16 bytes) exist <host=127.0.0.1>
[18108] Request receive-pack for '/hello-world.git'
@ACommitter
$ git push -u origin "john--01--create-app-saying-hello"
Run Code Online (Sandbox Code Playgroud)
为什么会这样?
从 Git for windows 1.9.4 开始,以下命令应该可以解决您的问题:
git config --global sendpack.sideband false
Run Code Online (Sandbox Code Playgroud)