4

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)

  1. 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?
  2. 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.
  3. Any advice on a best solution would be appreciated.

Thanks.

4

2 回答 2

4

What worked best before was an install of gitolite on a linux vm. This way you have many admin options. I highly recommend gitolite.

于 2012-07-18T09:27:15.357 回答
3

使用 Windows 共享是正确的(虽然很简单),但您牺牲了一些功能.. 权限和服务器端挂钩浮现在脑海。

这是另一个可能有帮助的问题:How to setup and clone a remote git repo on Windows?

或者这样:在 Windows 上使用 msysgit 设置 Git 服务器

于 2012-07-18T01:49:32.310 回答