开发者

Proper permission and directoy location for Git Version Control

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开发者_如何学Python 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


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:

mkdir repo.git
cd repo.git
git --bare init --shared=group
chgrp -R GROUP .

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜