diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /doc/push_rules/push_rules.md | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'doc/push_rules/push_rules.md')
-rw-r--r-- | doc/push_rules/push_rules.md | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/doc/push_rules/push_rules.md b/doc/push_rules/push_rules.md index db190797d0a..34a63f425eb 100644 --- a/doc/push_rules/push_rules.md +++ b/doc/push_rules/push_rules.md @@ -82,14 +82,19 @@ See [server hooks](../administration/server_hooks.md) for more information. ## Enabling push rules -NOTE: -GitLab administrators can set push rules globally under -**Admin Area > Push Rules** that all new projects inherit. You can later -override them in a project's settings. They can be also set on a [group level](../user/group/index.md#group-push-rules). +You can create push rules for all new projects to inherit, but they can be overridden +at the project level or the [group level](../user/group/index.md#group-push-rules). + +To create global push rules: + +1. On the top bar, select **Menu >** **{admin}** **Admin**. +1. In the left sidebar, select **Push rules**. + +To override global push rules in a project's settings: -1. Navigate to your project's **Settings > Repository** and expand **Push rules** -1. Set the rule you want -1. Click **Save Push Rules** for the changes to take effect +1. Navigate to your project's **Settings > Repository** and expand **Push rules**. +1. Set the rule you want. +1. Select **Save Push Rules** for the changes to take effect. The following options are available: @@ -143,7 +148,7 @@ pushed to a repository. The list stops those commits from reaching the remote re By selecting the checkbox *Prevent committing secrets to Git*, GitLab prevents pushes to the repository when a file matches a regular expression as read from -[`files_denylist.yml`](https://gitlab.com/gitlab-org/gitlab/blob/master/ee/lib/gitlab/checks/files_denylist.yml) (make sure you are at the right branch +[`files_denylist.yml`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/lib/gitlab/checks/files_denylist.yml) (make sure you are at the right branch as your GitLab version when viewing this file). NOTE: |