Blocking force pushes
You can block force pushes on all repositories on the GitHub Enterprise Server appliance, on all repositories owned by an organization or on a particular repository.
Blocking force pushes on your appliance
Any site administrator can block all force pushes (git push --force
) on a GitHub Enterprise Server appliance
Blocking force pushes to repositories owned by a user account or organization
You can block force pushes (git push --force
) on all branches or just the default branch of repositories owned by a user account or organization.
Blocking force pushes to a repository
You can block force pushes (git push --force
) on all branches—or just the default branch—of a repository.