1. 管理员身份登录GitHub,找到项目
2. Settings-->Branches-->Protected branches--->Choose a branch... ,选择需要保护的分支,然后点击edit按钮,
3. Branch protection for 所选的分支名 --> 勾选Restrict who can push to this branch People and teams with push access
   若不选择任何人,则任何人都没有push代码到该分支的权限。

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2021-12-04
  • 2021-12-12
  • 2021-12-12
  • 2021-08-13
  • 2021-08-22
  • 2021-07-05
猜你喜欢
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
相关资源
相似解决方案