[go: up one dir, main page]

Skip to content

Push rule that disables git push --force

Description

Using git push --force may have dangerous effects on the repository. Today we have git hooks to prevent that, but it would easier if it was a part of the push rules and editable using the GitLab API.

Proposal

Add a push rule that does not allow push with the force option. This rule should also be available from the GitLab API so scripts can enable it as a default on new projects.

Links / references

Push Rule API