Home  >  Q&A  >  body text

git远程仓如何设置权限

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

怪我咯怪我咯2756 days ago750

reply all(4)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-04-25 09:04:59

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

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-04-25 09:04:59

    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.

    reply
    0
  • 迷茫

    迷茫2017-04-25 09:04:59

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

    reply
    0
  • 漂亮男人

    漂亮男人2017-04-25 09:04:59

    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.

    reply
    0
  • Cancelreply