Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start git daemon on Windows

Tags:

How do I start the git daemon on Windows in order to allow it to begin serving requests? Seems like msysgit is supposed to install it as a Windows Service or something but I don't see one.

like image 750
A-Dubb Avatar asked Mar 03 '11 20:03

A-Dubb


People also ask

Is there a git daemon?

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?

What is git daemon?

git-daemon is a simple server for git repositories. The daemon makes git repositories available over the git:// protocol, which is very efficient, but insecure.


2 Answers

Git for Windows 1.7.4 includes support for git daemon on windows which was missing in previous versions. To export your repository you will need to create a file called git-daemon-export-ok in the .git directory or include the --export-all command line option.

In a git repository run:git daemon --export-all and you can then connect to it from a remote machine eg: git ls-remote git://yourmachine/path/to/repo

like image 95
patthoyts Avatar answered Sep 20 '22 05:09

patthoyts


You could use SCM-Manager instead of git daemon.

like image 20
sdorra Avatar answered Sep 18 '22 05:09

sdorra