- 进入网页https://github.com/[username]/[repositoriesname]
- 点击Settings-Branches
- 在Branch protection rules下点击Add rules
- Branch name pattern填入master
- 拉动页面到最下方找到Rules applied to everyone including administrators
- 点击Create,之后输入密码确认即可。
`master` is protected branch
引用《关于受保护分支》
最近需要删除几张图床上的图片,在推送的时候报错`master` is protected branch