Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Git server on Windows?

Tags:

git

windows

How can I share a Git repo on Windows? The "correct" ways appear to be to run "git-daemon" (unix specific) or run ssh (unix specific) or run an http front end for Git. If I just have two Windows boxes and don't feel like installing Unix just to run Git, what is the optimal way to share the repos between the two boxes?

like image 672
user1071914 Avatar asked Oct 28 '12 20:10

user1071914


2 Answers

If both machines are in the same LAN, you can put the repo in a directory shared via the regular Windows network protocol (SMB).

(Disclaimer: I'm not certain about locking semantics for SMB, so it could be that simultaneous writes to the repo could corrupt it. Then again, the same probably holds for Unix.)

like image 116
Thomas Avatar answered Sep 20 '22 16:09

Thomas


If you want easiest way, you have to see at SCM-manager

The easiest way to share and manage your Git, Mercurial and Subversion repositories over http.

In order to have http-served repository with nice Web-frontend and management you have to have only Java (Java, not JRE)

like image 37
Lazy Badger Avatar answered Sep 20 '22 16:09

Lazy Badger