GitRoot protect some branches against force-push. Force-push is bad practice and should be avoided, especially on shared branch. By default GitRoot protect your defaultBranch.
To know if a branch is protected or not, look at the .gitroot/repoConfiguration.yml
file.
1defaultbranch: main
2noforcepush:
3 - main
But sometimes we need to do bad things. GitRoot permit to edit this branch in a pretty cool workflow:
.gitroot/users.yml
and remove all other users for this branch. Commit the diff and push it. By now, only you can change this branch.noforcepush
in .gitroot/repoConfiguration.yml
. Commit and push.