Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git in a company - hosting own server

Tags:

git

I am presenting Git to a 10 man programming team who currently use Visual Source Safe.

They need to host their Git server inside the company. Windows or Linux. Directory authentication is Novell eDirectory.

They need some granular security on who can push to the central server.

From:

https://stackoverflow.com/questions/923130/what-type-of-git-server-do-you-use-or-how-do-you-use-git

Maybe a workflow could be:

  • Setup 10 users on the server.
  • Setup a common directory on the servers filesystem that the 10 users have write access to
  • Push files to the server via SSH eg git push [email protected]:user1/project.git
  • But then I need that the keys are installed on the server

Question: Does anyone use a workflow like this successfully in a company. What works? This is starting to feel like most people use Git with GitHub etc..

[Edit]: Please see Choosing a source control system: logical next steps after VSS Maybe Git isn't the right fit for this team.

like image 433
Dave Mateer Avatar asked Nov 19 '09 05:11

Dave Mateer


1 Answers

It's certainly possible to have a self-hosted git repository with access control. Typically what one would do is create a account named git on the server machine, set the shell of that account to git-shell, which is a limited shell designed for use by git only, and then put the public keys for each authorized user in the git-user's .ssh/authorized_keys file.

http://blog.commonthread.com/2008/4/14/setting-up-a-git-server has most of the rest of the actual details.

like image 123
Amber Avatar answered Sep 20 '22 23:09

Amber