Git in a company - hosting own server

git

Solution

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.

Problem

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 dave@test.com: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.

Original source

Related problems