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).
Gitweb provides a web interface to Git repositories. Its features include: Viewing multiple Git repositories with common root. Browsing every revision of the repository. Viewing the contents of files in the repository at any revision.
A Git repository tracks and saves the history of all changes made to the files in a Git project. It saves this data in a directory called . git , also known as the repository folder. Git uses a version control system to track all changes made to the project and save them in the repository.
For Git, issue the git command and check whether it succeeded.
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 or similar 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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With