Git Peer to Peer - Fatal: Read Error: Invalid Argument

In Git, I tried peer-to-peer sharing on a local network, but ended up with the error "fatal: read error: Invalid argument".

I have completed the following 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 git port port 9418 in the firewall settings on both PCs.

Tell me how to solve this.

+6
source share
1 answer

In 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 

This means that something is bad with any of your repositories or that this is not a git problem, but a network problem. In any case, you should try to solve your problem with a more interactive process than stackoverflow, possibly with the IRC # git channel.

+1
source

Source: https://habr.com/ru/post/920289/


All Articles