Article version: Enterprise Server 2.13

This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2019-03-27. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

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.

Ask a human

Can't find what you're looking for?

Contact us