GIT central repository on Windows network share

你。 提交于 2019-12-13 12:28:09

问题


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.


回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!