git daemon clone is not working in local area netw

2020-07-30 02:27发布

问题:

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

System 1

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

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?

回答1:

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