What is git-demon?

What is git-daemon? Is this the default git function? I am trying to figure this out so that I can host the repository on a server that people can click / pull on.

So far, I have been able to clone the "-bare" repository to the Apache server, and then use "update-server-info" to allow other employees to clone the clone. However, this does not allow employees to push their commits to the --bare repository.

I created the file "git -daemon-export-ok" in my "-bare" repository and ran the command: "git -daemon --verbose / git", but I get the error message: "git -daemon: command not found. "

Any help would be appreciated.

+4
source share
3 answers

man git-daemon will tell you quite a bit (and yes, this is the built-in module that comes with Git). Git daemon starts via git daemon (do not notify about this).

However, you should take a look at Gitolite if you plan to host Git repositories on the server.

Also, why are you cloning the repository for the purpose of cloning, and any attempts to redirect it to the repo from which it was cloned? Just a clone from the original repository!

+2
source

Each repository, for example, / opt / git / myrepository.git, has a configuration file on your server.

Add the following section

 [daemon] uploadpack = true uploadarch = true receivepack = true 

From kernel.org page to git -daemon

0
source

You can have a detailed understanding by reading https://www.kernel.org/pub/software/scm/git/docs/git-daemon.html

Regarding the git daemon not a git command problem, you can read this post on how to install it. http://androidyue.imtqy.com/blog/2013/09/10/install-git-daemon-on-fedora/

Hope this helps you.

0
source

Source: https://habr.com/ru/post/1398717/


All Articles