问题
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)
- It seems that this solution might allow developers to cause problems with the repo, by allowing them to map to the drive and play with the files (outside of the GIT client). Is there a way to prevent this? Or do I misunderstand something here?
- If your using network shares, does the GIT installation on the server actually have a purpose? Or is it just clients pushing back and forth from the share.
- Any advice on a best solution would be appreciated.
Thanks.
回答1:
What worked best before was an install of gitolite on a linux vm. This way you have many admin options. I highly recommend gitolite.
回答2:
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
来源:https://stackoverflow.com/questions/11533042/git-central-repository-on-windows-network-share