search

Home  >  Q&A  >  body text

Request everyone to control git permissions

Please give me some guidance...How does git control users' permission to download code? In the envisioned scenario, if a new person comes to the company and clones the entire code, will there be any problem?

怪我咯怪我咯2781 days ago796

reply all(6)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-02 09:54:26

    Native git does not have permission settings. Now those who have permission requirements use github or gitlab and other git-based online code management platforms (which also come with more powerful functions). For those who have private deployment requirements, only gitlab currently provides a community. version system, there are also Chinese docker images
    It is not recommended to use svn, the risk of losing code version records is still much higher than git @ZXCDFGTYU

    reply
    0
  • 高洛峰

    高洛峰2017-05-02 09:54:26

    I once used Gitolite to assign permissions to git projects, and it worked well

    If a new person comes to the company and clones the entire code, will there be any problem?

    If everything in the entire company is in one warehouse and others are not allowed to clone it, how can others develop it? If there are several, corresponding permissions will be given.

    ps: To quote Liao Dada: Code is worthless now

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:54:26

    Set permissions. Git is generally divided into public and private. Generally, private ones need to be added to a group before they can be cloned. Can be set within the project.

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-02 09:54:26

    If you want to set permissions, you still need to use svn. After all, the original intention of git design is open sharing. It is quite troublesome to set permissions in git. It is not as good as svn. Just set it in the configuration file and it also has hooks

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-02 09:54:26

    git does not. . . Git has full permissions

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-02 09:54:26

    Gitlab can be used, but when you give permission, it will still clone all the code. . .
    I would like to say that I have the front-end codes of several internship companies in my computer. As long as I have a learning attitude, check it out and don’t do any transactions, I think it’s fine

    reply
    0
  • Cancelreply