git远程仓如何设置权限
怪我咯
怪我咯 2017-04-25 09:02:59
0
4
776

用了一台服务器做git的远程仓,上面有A,B,C的项目,只想成员访问A的项目,但是现在只能提供一个账号为git出来给大家拉项目,并且密码公开了,导致有成员可以直接ssh上服务器看到所有的项目,这不符合公司管理安全,请问给位应该怎么做呢?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(4)
曾经蜡笔没有小新

You can try gitlab/gitolite and other git permission solutions~

过去多啦不再A梦

Try gitosis. Everyone submits his or her public key to the administrator, and then configures accessible projects for everyone in the gitosis configuration file. Access permissions can be divided into read-only and read-write.

迷茫

Install gitlab directly using a new system.
See: Installing gitlab

漂亮男人

First of all, you can consider using a ready-made management system, such as gitlab.

Then, Git's ssh protocol is actually based on ssh file permissions. You can create separate users for each person on the server, and then add users who can access project A to group A, and then only authorize group A to access git Warehouse files.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template