Git对等共享 - 致命:读取错误:无效的参数 [英] Git Peer to Peer sharing - fatal: read error: Invalid argument

查看:189
本文介绍了Git对等共享 - 致命:读取错误:无效的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Git中,我尝试了在本地网络中的点对点共享,但以致命:读取错误:无效参数错误结束。

脚步。

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:读取错误:无效参数

Git版本:git版本1.7.11.msysgit.0
操作系统:Win XP
注意:
在两台电脑的防火墙设置中添加了git端口9418。



请指导我如何解决这个问题。



 〜/ git1 $ git init foo 
#在foo中创建一些提交
〜/ git1 $ git daemon --verbose --export-all --port = 9999 --base-path = $ PWD

〜/ git1 $ cd ../git2
〜/ git2 $ git clone git:// [:: 1]:9999 / foo
#克隆工程

这意味着你的任何一个版本库都有问题,或者它不是git问题,而是网络问题。在任何情况下,你都应该用一个比stackoverflow更具交互性的过程来解决你的问题,也许是一些IRC #git频道。


In Git, i tried peer to peer sharing in my local network, but ended with the error "fatal: read error: Invalid argument".

I followed below steps.

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 version : git version 1.7.11.msysgit.0 OS: Win XP Note: Added the git port 9418 in firewall settings on both the PC's.

Pls Guide me how to solve this.

解决方案

When doing the following steps, everything works:

~/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

Which means that either something is bad with either of your repositories or that it is not a git issue but a network issue. In any case, you should try solving your problem with a more interactive process than stackoverflow, maybe some IRC #git channel.

这篇关于Git对等共享 - 致命:读取错误:无效的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆