在gentoo下启动git的git协议,支持匿名下载

7 views
Skip to first unread message

zhangjin wu

unread,
Jan 31, 2008, 9:25:58 AM1/31/08
to she...@lzu.cn, zhan...@gmail.com, lzuos...@googlegroups.com
HI!

这个比较有用,

[quote]
一般你必须要在文件夹.git/下面建立一个git-daemon-export-ok的文件,这个工程才可以被git-pull出来。而使用了--export-all的话不管这个文件了。

有了Gentoo,git-daemon的启动好方便啊。只需要在/etc/conf.d/git-daemon中加入必要的参数,我默认是不打开--export-all的标签的,又设置了一个--base-path,这样不会被别人知道我机器上的路径,文件的存放方式。(被人偷窥总是不爽,对么?呵 呵)。然后 # /etc/init.d/git-daemon start就可以了,如果要每次启动都要启动的话,就再添加一句话:# rc-update add git-daemon default

我push,我pull~~~体验中。
[/quote]

另外,在/etc/xinetd.d/git-daemon下面还可以进行一些设置,包括设置git的路径等,不过在/etc/conf.d/git-daemon下应该也可以设置的,设置一些参数就可以。

--
Student. Wu Zhangjin            
Lanzhou University      http://www.lzu.edu.cn
Distributed & Embedded System Lab      http://dslab.lzu.edu.cn
School of Information Science and Engeneering         http://xxxy.lzu.edu.cn
zhan...@gmail.com         http://falcon.oss.lzu.edu.cn
Address:Tianshui South Road 222,Lanzhou,P.R.China    Zip Code:730000  
Tel:+86-931-8912025
Reply all
Reply to author
Forward
0 new messages