在Git中,我尝试在本地网络中进行点对点共享,但以错误"fatal: read error: Invalid argument“结束。
我遵循了下面的步骤。
PC1:
$cd /d/all-repos
$git daemon --verbose --export-all –base-path=.
PC2:
$cd <repository name>
$git remote add developer1 git://<PC1 name or IP address>/testrepo
$git fetch developer1
fatal: read error: Invalid argument
Git版本: git版本1.7.11.msysgit.0操作系统: Win XP注:在两台PC的防火墙设置中添加了git端口9418。
请指导我如何解决这个问题。
发布于 2013-02-12 21:55:33
执行以下步骤时,一切正常:
~/git1$ git init foo
# create some commits in foo
~/git1$ git daemon --verbose --export-all --port=9999 --base-path=$PWD
~/git1$ cd ../git2
~/git2$ git clone git://[::1]:9999/foo
# cloning works
这意味着要么是你的存储库出了什么问题,要么不是git问题,而是网络问题。在任何情况下,你都应该尝试用一个比stackoverflow更具交互性的进程来解决你的问题,也许是一些IRC #git通道。
https://stackoverflow.com/questions/11446026
复制相似问题