# git-daemon on Windows?

6 messages from 2008-06-11 to 2008-06-12. Participants: Chris Hoffman, Jakub Narebski, Johannes Sixt, Avery Pennarun, John Yesberg.
Thread: https://gitlist.dev/t/13894

## Chris Hoffman, 2008-06-11 12:51

Subject: git-daemon on Windows?
Message-ID: <63c5d3820806110551y69e895eeg4fde4bfdaf22bbf2@mail.gmail.com>
URL: https://gitlist.dev/e/63c5d3820806110551y69e895eeg4fde4bfdaf22bbf2%40mail.gmail.com

```
Hello,

Is there a distribution of the git server for Windows, or am I totally
missing the point of git?  Will a simple file share work, or do I have
to worry about file locking and such (e.g., two people try to commit
at the same time).

Thanks,
Chris

```

## Jakub Narebski, 2008-06-11 13:27

Subject: Re: git-daemon on Windows?
Message-ID: <m38wxcrtjr.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m38wxcrtjr.fsf%40localhost.localdomain
In-Reply-To: <63c5d3820806110551y69e895eeg4fde4bfdaf22bbf2@mail.gmail.com>

```
"Chris Hoffman" <chris.c.hoffman@gmail.com> writes:

> Is there a distribution of the git server for Windows, or am I totally
> missing the point of git?

I don't know about git-daemon (git server) under Windows, but you can
use I think any web server (Apache, lighttpd, or even IIS) can serve
git over HTTP, and any web server with WebDAV can enable pushing to
git repositories.  Please remember that "dumb" protocols such as HTTP
require additional info which must be generated by git (usually in
post-update / post-commit hook), or transferred.

You can use SSH to access repositories, but I don't know any SSH
server for Windows.  You can use Cygwin OpenSSH server, I think
(restrict access with git-shell, or use gitosis)...

Or you can use any networked file system.

> Will a simple file share work, or do I have to worry about file
> locking and such (e.g., two people try to commit at the same time).

The preferred workflow is for each person to have its own clone of
repository; one repository plays role of central one, ut not by
socilogical not technical reasons.  Centralized workflow is possible,
but id doesn't take as much attention.

-- 
Jakub Narebski
Poland
ShadeHawk on #git

```

## Johannes Sixt, 2008-06-11 13:54

Subject: Re: git-daemon on Windows?
Message-ID: <484FD8FA.3060003@viscovery.net>
URL: https://gitlist.dev/e/484FD8FA.3060003%40viscovery.net
In-Reply-To: <63c5d3820806110551y69e895eeg4fde4bfdaf22bbf2@mail.gmail.com>

```
Chris Hoffman schrieb:
> Is there a distribution of the git server for Windows, or am I totally
> missing the point of git?  Will a simple file share work, or do I have
> to worry about file locking and such (e.g., two people try to commit
> at the same time).

You are missing *some* point of git: Usually, everyone has his own
repository, hence, commits that happen concurrently won't be a problem.

But you must exchange your work, and for this it is common that everyone
in addition has a publically accessible (bare) repository. These you can
place on a normal file share. I do this all the time.

You *can* choose to have only a single (bare) repository that everyone
uses to exchange work. But then you do have to worry about concurrent
*pushes* that get in the way of each other. You have this problem no
matter which form of server you chose (file share, ssh, git daemon,
WebDAV). If you go this route, you need a policy how people publish their
work (eg. branch namespaces). msysgit and 4msysgit do it this way.

-- Hannes

```

## Avery Pennarun, 2008-06-11 16:41

Subject: Re: git-daemon on Windows?
Message-ID: <32541b130806110941n2b8c880bk79fb09db3f089f82@mail.gmail.com>
URL: https://gitlist.dev/e/32541b130806110941n2b8c880bk79fb09db3f089f82%40mail.gmail.com
In-Reply-To: <m38wxcrtjr.fsf@localhost.localdomain>

```
On 6/11/08, Jakub Narebski <jnareb@gmail.com> wrote:
> "Chris Hoffman" <chris.c.hoffman@gmail.com> writes:
>
>  > Is there a distribution of the git server for Windows, or am I totally
>  > missing the point of git?
>
> I don't know about git-daemon (git server) under Windows

I can confirm that the git-daemon works fine on Windows (cygwin).
Currently using git 1.5.5, but previous versions worked for me as
well.

But Jakub's other suggestions are probably more appropriate for a "git
server" in the same sense as an "svn server" or "p4 server" (ie.
read-write access with authentication).

Have fun,

Avery

```

## John Yesberg, 2008-06-12 15:23

Subject: Re: git-daemon on Windows?
Message-ID: <1033a22d0806120823j40185f9dj28672803490f8bdb@mail.gmail.com>
URL: https://gitlist.dev/e/1033a22d0806120823j40185f9dj28672803490f8bdb%40mail.gmail.com
In-Reply-To: <484FD8FA.3060003@viscovery.net>

```
I'm trying to learn about this too.
I found the gittutorial
http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html
useful.
See the section "Using git for collaboration", which explains how use
can use a shared filesystem.

Or maybe I don't understand the subtleties of the issue.

John.

On Wed, Jun 11, 2008 at 2:54 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
> Chris Hoffman schrieb:
>> Is there a distribution of the git server for Windows, or am I totally
>> missing the point of git?  Will a simple file share work, or do I have
>> to worry about file locking and such (e.g., two people try to commit
>> at the same time).
>
> You are missing *some* point of git: Usually, everyone has his own
> repository, hence, commits that happen concurrently won't be a problem.
>
> But you must exchange your work, and for this it is common that everyone
> in addition has a publically accessible (bare) repository. These you can
> place on a normal file share. I do this all the time.
>
> You *can* choose to have only a single (bare) repository that everyone
> uses to exchange work. But then you do have to worry about concurrent
> *pushes* that get in the way of each other. You have this problem no
> matter which form of server you chose (file share, ssh, git daemon,
> WebDAV). If you go this route, you need a policy how people publish their
> work (eg. branch namespaces). msysgit and 4msysgit do it this way.
>
> -- Hannes
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

```

## Chris Hoffman, 2008-06-12 18:24

Subject: Re: git-daemon on Windows?
Message-ID: <63c5d3820806121124p490ecf3eh87cb7c3742937fb2@mail.gmail.com>
URL: https://gitlist.dev/e/63c5d3820806121124p490ecf3eh87cb7c3742937fb2%40mail.gmail.com
In-Reply-To: <1033a22d0806120823j40185f9dj28672803490f8bdb@mail.gmail.com>

```
Yes, I think that this is a very good section of the tutorial to
consult.  It is just hard for me to beat back my subversion thinking.

On Thu, Jun 12, 2008 at 11:23 AM, John Yesberg <john.yesberg@gmail.com> wrote:
> I'm trying to learn about this too.
> I found the gittutorial
> http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html
> useful.
> See the section "Using git for collaboration", which explains how use
> can use a shared filesystem.
>
> Or maybe I don't understand the subtleties of the issue.
>
> John.
>
> On Wed, Jun 11, 2008 at 2:54 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
>> Chris Hoffman schrieb:
>>> Is there a distribution of the git server for Windows, or am I totally
>>> missing the point of git?  Will a simple file share work, or do I have
>>> to worry about file locking and such (e.g., two people try to commit
>>> at the same time).
>>
>> You are missing *some* point of git: Usually, everyone has his own
>> repository, hence, commits that happen concurrently won't be a problem.
>>
>> But you must exchange your work, and for this it is common that everyone
>> in addition has a publically accessible (bare) repository. These you can
>> place on a normal file share. I do this all the time.
>>
>> You *can* choose to have only a single (bare) repository that everyone
>> uses to exchange work. But then you do have to worry about concurrent
>> *pushes* that get in the way of each other. You have this problem no
>> matter which form of server you chose (file share, ssh, git daemon,
>> WebDAV). If you go this route, you need a policy how people publish their
>> work (eg. branch namespaces). msysgit and 4msysgit do it this way.
>>
>> -- Hannes
>> --
>> To unsubscribe from this list: send the line "unsubscribe git" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>

```
