新建repo:
左下角Project Settings --> Repositories --> 右上角"+Create" --> 填写name --> Create
新建team:
左下角Project Settings --> Teams --> 右上角"New Team" --> 填写name、加Members --> Create
给相应的team或者人,加到某repo的权限:
左下角Project Settings --> Repositories --> 右边选中某repo --> Security --> "Search for users or groups"里搜相应的team或者人 --> 修改对应的权限 --> 刷新页面
删除repo里某人或者某个team:
如果提示"inheritance"导致删不掉,可以将上方"Inheritance"拉条拉到左侧disable状态;再删;虽然还提示删不掉,但刷新之后实际是删掉了;
将某个team的最下方几个权限设为Deny之后,所有权限全部变灰:
把自己从那个team里删去即可;
强制给main branch加reviewer数目和人的限制:
左下角Project Settings --> Repositories --> 右边选中某repo --> Policies --> Branch Policies里选main-->最上方"Require a minimum number of reviewers"调成N-->最下方Automatically included reviewers --> 加号