Closed tomowind closed 7 years ago
Go to setting of this repository.
Go to Branches.
Go to Protected Branches, add master.
Check protect this branch.
Check Require pull request reviews before merging.
Check Include administrators.
Don't check Require status checks to pass before merging, but we will have to work on this later.
I changed the settings for the project to disallow direct push.
@garlicbulbxian This is your issue.
I could somehow pushed to origin/master using GitHub Desktop. I tried
git reset --hard
andgit push origin HEAD -f
, but it didn't work. Anyways, I pushed another commit after doinggit revert <commit>
. Try to find a setting, and change not to accept any direct push to master.See my commits: https://github.com/garlicbulb-puzhuo/ggo/commit/53dfc2d835ad11717f64ae4e42e0c4357fae7b39 https://github.com/garlicbulb-puzhuo/ggo/commit/42ae42eb917b61507a93529c6767c0bf5cfa67b9