我正在分享我的存储库
Linux nozim-desktop 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:17:33 UTC 2010 i686 GNU/Linux
我跑的时候:
sudo -u git git-daemon --base-path=/home/git/repositories/ --export-all
它说:
sudo: git-daemon: command not found
我错过了什么?
在我的Ubuntu 10.04系统上遇到同样的问题之后,我了解到git-daemon刚刚安装在其他地方并且操作方式与我在设置它时所遵循的指南有所不同.
在我的系统上,它位于 /us/lib/git-core/git-daemon
要使用它,请编辑文件/etc/service/git-daemon/run/并修改参数以满足您的需要.
这是我的:
#!/bin/sh
exec 2>&1
echo 'git-daemon starting.'
exec chpst -ugitdaemon
/usr/lib/git-core/git-daemon --verbose --base-path=/home/git/repositories
如果您希望所有存储库都公开可用,则添加--export-all,否则,touch git-daemon-export-ok在/path/to/repositories/<repository-name>.git/您希望公开使用的存储库目录中运行.
进行更改后,运行ps -A | grep 'git'然后运行a kill <process-id>以git-daemon使用新配置重新加载.
希望有所帮助!
资料来源: http ://sharplearningcurve.com/blog/post/2010/02/06/Chasing-The-CI-Grail-e28093-Setup-Gitosis-From-Scratch.aspx("更新Git-Daemon配置")
| 归档时间: |
|
| 查看次数: |
10531 次 |
| 最近记录: |