Best setup of Git for Windows Server 2003

1,469 views
Skip to first unread message

RoryR

unread,
Sep 16, 2009, 1:53:54 AM9/16/09
to msysGit
Hi, I am trying to setup Git for use on a Windows Server 2003 box as
the server for clients who develop product source code (a typical
client-server setup). I installed PuTtY, git and tortoisegit on both a
test client and the server and they work fine locally, but ... how do
I setup networking so I can push changes from clients and use the
Windows Server 2003 box as the central repository?

I am a complete newbie at this so need somewhere with step by step
instructions, but all I see is either 'use a Linux server' or 'use
Cygwin' which people say is slow. Can anyone point me at a step by
step guide how to set this up the best way?

Thanks for any help you provide!

Marius Storm-Olsen

unread,
Sep 16, 2009, 2:59:40 AM9/16/09
to RoryR, msysGit
RoryR said the following on 16.09.2009 07:53:

AFAIK there's no guide for setting up msysgit to work as a Git server.
Certainly the git daemon does not work in the msysgit port yet.

However, you don't need the git daemon, if you can setup a SSHD on the
server, where the logins have access to git, and are given the
msysgit's bash as their shell. THEN you might be able to use Windows
as a Git server based on msysgit. Note that this is VERY experimental!

I would really recommend using a linux machine as the Git server.

--
.marius

Richard Willis

unread,
Sep 16, 2009, 3:17:37 AM9/16/09
to RoryR, msysGit
Hi Rory,
As you've heard, there's no git daemon for Windows. I'm not sure if it's the correct way, but for several months now I've simply been using the windows share name, eg, //server/directory/to/repo.

Here's an example:

== New Remote Repo ==
[On the server]
$ md \git\newrepo.git
$ cd \git\newrepo.git
$ git init --bare
This may either be done locally or on the remote server (if done locally simply copy the result to the server directory). Setup a bare repository

[On the workstation]
$ cd local_repo
$ git remote add origin <SERVER_URL>
Add the remote server to the local config, eg: git remote add origin //server/git/newrepo.git
Note the use of forward slash is intentional!

$ git push origin master
Push the local master branch to the remote

Seems to work without problems, including over VPN and there's no need to SSH or any in fact software to be running on the server.

Johannes Sixt

unread,
Sep 16, 2009, 3:00:05 PM9/16/09
to RoryR, msy...@googlegroups.com
On Mittwoch, 16. September 2009, RoryR wrote:
> Hi, I am trying to setup Git for use on a Windows Server 2003 box as
> the server for clients who develop product source code (a typical
> client-server setup). I installed PuTtY, git and tortoisegit on both a
> test client and the server and they work fine locally, but ... how do
> I setup networking so I can push changes from clients and use the
> Windows Server 2003 box as the central repository?

The easiest is certainly to share a directory on the server with the clients.
The clients can mount it as a drive and access it like a local repository.

-- Hannes

Reply all
Reply to author
Forward
0 new messages