Git in a company - hosting own server

前端 未结 7 2387
情深已故
情深已故 2021-02-09 04:59

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. Direc

7条回答
  •  天涯浪人
    2021-02-09 05:49

    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.

提交回复
热议问题