threads / discuss / 44626

git repo vs project level authorization

Subject: git repo vs project level authorization

## tl;dr

4 messages between Dec 5, 2016 and Dec 7, 2016.

replies: 3people: 4as markdown or json

ken edward· Dec 5, 2016, 20:33 UTC · lore

I am currently using svn with apache+mod_dav_svn to have a single repository with multiple projects. Each of the projects is controlled by an access control file that lists the project path and the allowed usernames.

Does git have this also? where is the doc?
Ken
Fredrik Gustafsson· Dec 5, 2016, 22:04 UTC · re: ken edward · lore

Re: git repo vs project level authorization

On Mon, Dec 05, 2016 at 03:33:51PM -0500, ken edward wrote:
Show 8 quoted lines
> I am currently using svn with apache+mod_dav_svn to have a single
> repository with multiple projects. Each of the projects is controlled
> by an access control file that lists the project path and the allowed
> usernames.
> 
> Does git have this also? where is the doc?
> 
> Ken

Git does not do hosting or access control. For this you need to use a third party program. There are plenty of options for you and each has different features and limitations. For example you should take a look at gitolite, gitlab, bitbucket, github, gogs. Just to mention a few. It's also possible to setup git with ssh or http/https with your own access control methods. See the progit book for details here.

-- 
Fredrik Gustafsson

phone: +46 733-608274
e-mail: iveqy@iveqy.com
website: http://www.iveqy.com
Sitaram Chamarty· Dec 7, 2016, 15:48 UTC · re: Fredrik Gustafsson · lore

Re: git repo vs project level authorization

Ken,
On Mon, Dec 05, 2016 at 11:04:44PM +0100, Fredrik Gustafsson wrote:
Show 16 quoted lines
> On Mon, Dec 05, 2016 at 03:33:51PM -0500, ken edward wrote:
> > I am currently using svn with apache+mod_dav_svn to have a single
> > repository with multiple projects. Each of the projects is controlled
> > by an access control file that lists the project path and the allowed
> > usernames.
> > 
> > Does git have this also? where is the doc?
> > 
> > Ken
> 
> Git does not do hosting or access control. For this you need to use a
> third party program. There are plenty of options for you and each has
> different features and limitations. For example you should take a look
> at gitolite, gitlab, bitbucket, github, gogs. Just to mention a few.
> It's also possible to setup git with ssh or http/https with your own
> access control methods. See the progit book for details here.

For some reason I did not see your email so I am responding to Fredrik's.

If your current system is an access control file, gitolite may be the closest "in spirit" to what you have;

The others that Fredrik mentioned are all much more GUI (and all of them have additional features like issue tracking, code reiew, etc.) If you need a more github-like experience, try those out.

Gitolite does *only* access control, nothing else, but within that limited scope it's pretty powerful. The simplest/quickest overview is probably this:

    http://gitolite.com/gitolite/overview.html#basic-use-case

regards sitaram

Junio C Hamano· Dec 5, 2016, 21:59 UTC · re: ken edward · lore

Re: git repo vs project level authorization

ken edward <kedward777@gmail.com> writes:
Show 6 quoted lines
> I am currently using svn with apache+mod_dav_svn to have a single
> repository with multiple projects. Each of the projects is controlled
> by an access control file that lists the project path and the allowed
> usernames.
>
> Does git have this also? where is the doc?

It is customary not to mix unrelated projects into a single repository in the Git land. Some hosting solutions give access control per branches, and some others give access control per repositories.

← back to recent threads