(已经解决了,我正在为下一个人写这个)
我在一台计算机上运行git守护程序并尝试与另一台计算机同步.
在计算机A上,我跑了:
git daemon --reuseaddr --base-path=. --export-all --verbose
Run Code Online (Sandbox Code Playgroud)
在电脑B上,我跑了:
git clone git://computerA/.git source # worked
cd source
git pull # worked
git push # failed with "fatal: The remote end hung up unexpectedly"
Run Code Online (Sandbox Code Playgroud)
在计算机A上,守护程序输出为:
[5596] Connection from 127.0.0.1:2476
[5596] Extended attributes (16 bytes) exist <host=localhost>
[5596] Request receive-pack for '/.git'
[5596] 'receive-pack': service not enabled for './.git'
[5444] [5596] Disconnected (with error)
Run Code Online (Sandbox Code Playgroud)
我要发布我发现的灵魂.如果您有更完整的答案,请继续添加.
git ×1