Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm wondering how exactly GitHub does what they do as far as hosting Git repositories goes. For example, I'm assuming that they manage repository push permissions based on values in some SQL table somewhere, something like:

create table user (id int primary key auto_increment, 
        username varchar(255),
        password varchar(255));

create table repository (id int primary key auto_increment,
        name varchar(255));

create table repository_member(id int primary key auto_increment,
        user_id int,
        repository_id int);

Pretty straightforward, right? I've used Gitosis (ironically hosted on GitHub) in the past, but something which uses a database would be a lot better than editing and committing changes to a couple text files on the hard drive. Is there another service which would make it easier to host tons of Git repositories and be able to heavily integrate it into a web application like GitHub does?

share|improve this question
1  
We're having trouble figuring out if this is on-topic anywhere, but it doesn't seem to be here -- does this have anything to do with Unix and Linux? You might want to check out this post on SO –  Michael Mrozek Oct 19 '11 at 13:52
add comment

closed as off topic by Michael Mrozek Oct 19 '11 at 13:52

Questions on Unix & Linux Stack Exchange are expected to relate to Unix or Linux within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 3 down vote accepted

All of them rely on ssh to authenticate the user, then something else for authorization. Gitosis and Gitolite both use a config file; Gitorious uses (I think) a database (although, it may be generating a config file anytime project permissions change; not sure).

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.