Git 版本控制的适当权限和目录位置
我在远程服务器上使用 Git 版本控制,并且设置了一个可供多人推送/获取的存储库。我已将存储库放在
/srv/subdir/git/.git
我似乎遇到一个又一个问题的情况下。
a) 该位置是否适合处理需要由多个开发人员和设计人员访问/修改的项目?或者有更好的位置吗?
b)我是否需要修改 subdir/ 和 git/ 目录的权限才能允许远程访问?如果我这样做,我应该允许什么适当的权限?
我知道这是一个失败的长请求/问题,但不幸的是,就像许多其他主题都有详尽的文档一样,文档并不总是涵盖最佳实践。
我将不胜感激任何人的意见和建议?
谢谢
I am using Git Version Control on an remote server and I have set up a repository that multiple people will be using to push/fetch from. I have put the repo under
/srv/subdir/git/.git
I have been experiencing problem after problem it seems like.
a) Is this location suitable for handling a project that will need to be accessed/modified by multiple developers and a designer? Or is there a better location?
b)Do I need to modify the permissions on the subdir/ and git/ directories in order to allow remote access? If I do what is the appropriate permissions I should allow?
I know this is a faily long request/question, but unfortunately like many other topics with well covered documentation, documentation does not always cover best practices.
I would appreciate anybodies advice and suggestions?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
a:我更喜欢 /git/repo.git 之类的东西,但是取决于偏好.....
b:你可能想看看 gitosis 之类的东西:
http://scie.nti.st/2007/11/14/hosting-git-repositories -the-easy-and-secure-way
但你也可以执行以下操作:
其中 GROUP 是所有提交者所在的组(例如 git 或提交者或开发人员),然后他们应该能够推送到回购协议。
a: I prefer something like /git/repo.git, buts is down to preference.....
b: You may want to look at something like gitosis:
http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
But also you can do the following:
Where GROUP would be a group all your committers are in (like git or committers or developers), they should then be able to push into the repo.