设置新的git安装。Git:设置守护进程的麻烦,git clone的问题
在一个Windows笔记本电脑,我跑(在Cygwin的):
git daemon --base-path=/cygdrive/c/work/proj/
我的项目的根是c:\工作\凸出\ proj1。有一个c:\ work \ proj \ proj1 \ .git目录。
git-daemon-export-ok存在于c:\ work \ proj \ proj1中。 (?git的守护出口-OK可以是空文件,是)
在另一台Windows计算机上,在同一个本地网络上,我试过很多这样的变化(在Cygwin的):
git clone git://xx.xx.xx.xx/proj1
我期望守护进程将'proj1'追加到基路径并做正确的事情。
在我看到服务器:
5728] '/cygdrive/c/work/proj/proj1/.git': repository not exported.
在客户端上我看到:
$ git clone git://xx.xx.xx.xx/proj1
Initialized empty Git repository in /cygdrive/c/work/proj/proj1/.git/
fatal: The remote end hung up unexpectedly
我在做什么错?
TIA ...
或者使用`git clone --bare` – gahooa 2009-07-11 01:12:44
谢谢。关键是把git-daemon-export-ok放在.git目录下,而不是父目录。 – Number8 2009-07-11 01:15:25