Reputation: 1432
Our company is looking at setting up a central GIT repository. As we are using Windows, we've been looking at using a network share solution, based on the following articles here and here.
However, after thinking about this I have some questions. (Warning - I'm a noob at GIT)
Thanks.
Upvotes: 4
Views: 7644
Reputation: 2074
I recognize this is an old question but, I have the same question now. I've been playing with this "GIT central repository on Windows network share" setup and I can answer some of the questions and provide some tips. I'll contribute more if/when I learn it. Time will tell whether this is truly a viable solution.
git init --bare <YourRepoName>
where the "current working directory" is your chosen network share folder. The init bare creates the repo (and subfolder) without a "working tree." I had trouble otherwise.git remote add origin file://<YourRepoFullPathName>
(might have to first git remote remove origin
from the "local" repos).Upvotes: 0
Reputation: 129526
What worked best before was an install of gitolite on a linux vm. This way you have many admin options. I highly recommend gitolite.
Upvotes: 4
Reputation: 1749
You are correct in that with the windows share (although easy), you sacrifice some functionality.. permissions and server-side hooks come to mind.
Here's another question that might help: How to setup and clone a remote git repo on Windows?
Or this: Setup a Git server with msysgit on Windows
Upvotes: 3