请求各位大腿git权限控制
怪我咯
怪我咯 2017-05-02 09:52:26
0
6
753

求各位大腿指导一下…git怎么控制用户下载代码的权限?预想场景,公司来新人直接带整份代码clone走了……会不会有问题?

怪我咯
怪我咯

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

reply all(6)
淡淡烟草味

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

小葫芦

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

洪涛

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.

大家讲道理

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

滿天的星座

git does not. . . Git has full permissions

大家讲道理

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!