We are having a local repository which is accessible to a large number of people. We have to set up a Git repository there such that only certain users have checkout as well as commit privileges. How can we do that.
P.S. : This is a part of our homework assignment in which we have to develop a game and update it using a Git repository. So, if anyone feels like we should not be asking this question here, please do tell.
I’d recommend gitolite to manage user access to the repository.
Edit after comments:
gitoliteis installed viagittoo.I’m guessing that your teacher probably also meant to teach you – besides using git – to configure git protocols, ssh access (keys etc.).
You already got best advices:
gitolite,gitosis,Pro git, adding to thisman ssh,man ssh-keygen,man scpand git manual your homework should be easily solved.