Git使用IP地址和路径从另一台机器拉出

时间:2016-11-21 20:01:18

标签: git windows-10

如何将源代码从机器B拉入机器A(都运行Windows 10)?

  • 机器A:IP 192.168.0.10,Git仓库位于c:\work\mysrc\mysrc.git
  • 机器B:IP 192.168.0.11,Git repo位于e:\src\mysrc.git

我在机器A上尝试过的事情:

git remote add machineB git://192.168.0.11/e/src/mysrc.git
git pull machineB master
fatal: unable to connect to 192.168.0.11:
192.168.0.11[0: 192.168.0.11]: errno=No error

我在机器B上尝试过的事情:

cd e:\src\.git
touch git-daemon-export-ok
git daemon --base-path=. --enable=receive-pack --reuseaddr --informative-errors --verbose

参考文献:this page

0 个答案:

没有答案