git daemon克隆在局域网中不起作用 [英] git daemon clone is not working in local area network

查看:142
本文介绍了git daemon克隆在局域网中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用局域网访问中央存储库中的文件.

I am using a local area network to access the files in my central repository.

我创建了一个裸仓库来存储我的文件,我使用以下命令启动了git守护程序:

I created a bare repository to store my files in it, I started a git daemon using the following command:

> git daemon --verbose --export-all --enable=upload-pack --enable=receive-pack --base-path=d:/

系统2

从第二个系统中,我正在尝试使用命令克隆裸存储库

System 2

From the second system I am trying to clone the bare repository using the command

$ git clone git://192.168.1.8/bare-repository.git

但是它给出了类似的错误

But it gives the error like

$ git clone git://192.168.1.8/bare-repository
Cloning into 'bare-repository'...
remote: Counting objects: 3, done.R
Receiving objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
fatal: read error: Invalid argument
fatal: error in sideband demultiplexer`.

您能帮助我解决该错误吗?

Can you please help me to solve that error?

推荐答案

这种错误消息通常与以下内容相关:

That type of error message is usually associated with:

  • a connectivity issue (ie it does start the clone, but is unable to complete it because of connection glitch): see "Git daemon cloning error"
  • a remote repo content issue: see "Git responds with 'error in sideband demultiplexer'"
  • memory issue (same question)
  • a post-receive hook ("Error in sideband demultiplexer with a git post-receive hook"), which shouldn't be the case here, as you are cloning, not pushing.

这篇关于git daemon克隆在局域网中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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