什么是git-daemon? [英] What is git-daemon?
问题描述
什么是git-daemon?它是一个默认的git函数吗?我试图理解这一点,以便我可以在服务器上托管一个存储库,以便人们可以推/拉。
到目前为止,我可以克隆一个 - 裸露的资源库放到Apache服务器上,然后使用update-server-info将资源库克隆到其他协作者。然而,这不会让协作者将他们的提交推送到--bare存储库。
我在我的文档中创建了git-daemon-export-ok --bare版本库,并运行命令:
git-daemon --verbose / git但我得到一个错误:git-daemon:command not found。
任何帮助将不胜感激。
man git-daemon
会告诉你很多(是的,它是一个内置的Git)。 Git守护进程通过 git daemon
(注意无连字符)运行。然而,你应该看看< a href =https://github.com/sitaramc/gitolite =nofollow> Gitolite 如果您打算在服务器上托管Git存储库。 此外,你为什么要克隆一个存储库,目的是克隆这个存储库,并且推动它转发给它从中克隆的存储库?只需从原始存储库克隆即可!
What is git-daemon? Is it a default git function? I am trying to understand this so that I can host a repository on a server that people can push/pull from.
So far I am able to clone a "--bare" repository onto an Apache server, and then use "update-server-info" to allow the repository to be cloned to other collaborators. However, this does not let collaborators push their commits to the "--bare" repository.
I created the "git-daemon-export-ok" file in my "--bare" repository, and ran the command: "git-daemon --verbose /git" but I get an error: "git-daemon: command not found."
Any help would be appreciated.
man git-daemon
will tell you quite a bit (and yes, it is a built-in that comes with Git). Git daemon is run via git daemon
(notice no hyphen).
However, you should take a look at Gitolite if you intend on hosting Git repositories on a server.
Further, why are you cloning a repository with the intention of having that cloned, and any pushes to it forwarded to the repo it was cloned from? Just clone from the original repository!
这篇关于什么是git-daemon?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!