You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/get-started/learning-about-github/githubs-plans.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,9 @@ See costs and features for each plan at {% data variables.product.pricing_link %
23
23
24
24
When you read {% data variables.product.prodname_docs %}, make sure to select the version that reflects your plan. For more information, see [AUTOTITLE](/get-started/using-github-docs/about-versions-of-github-docs).
25
25
26
-
## {% data variables.product.prodname_free_user %} for personal accounts
26
+
## Individual plans
27
+
28
+
### {% data variables.product.prodname_free_user %} for personal accounts
27
29
28
30
With {% data variables.product.prodname_free_team %} for personal accounts, you can work with unlimited collaborators on unlimited public repositories with a full feature set, and on unlimited private repositories with a limited feature set.
29
31
@@ -40,7 +42,7 @@ With {% data variables.product.prodname_free_user %}, your personal account incl
40
42
* Deployment protection rules for public repositories
41
43
* GitHub Pages in public repositories
42
44
43
-
## {% data variables.product.prodname_pro %}
45
+
###{% data variables.product.prodname_pro %}
44
46
45
47
In addition to the features available with {% data variables.product.prodname_free_user %} for personal accounts, {% data variables.product.prodname_pro %} includes:
46
48
* {% data variables.contact.github_support %} via email
@@ -63,7 +65,9 @@ In addition to the features available with {% data variables.product.prodname_fr
{% data reusables.repositories.repo-insights-commit-limit %}
65
67
66
-
## {% data variables.product.prodname_free_team %} for organizations
68
+
## Organization and enterprise plans
69
+
70
+
### {% data variables.product.prodname_free_team %} for organizations
67
71
68
72
With {% data variables.product.prodname_free_team %} for organizations, you can work with unlimited collaborators on unlimited public repositories with a full feature set, or unlimited private repositories with a limited feature set.
69
73
@@ -72,7 +76,7 @@ In addition to the features available with {% data variables.product.prodname_fr
72
76
* Team access controls for managing groups
73
77
* 2,000 {% data variables.product.prodname_actions %} minutes per month
74
78
75
-
## {% data variables.product.prodname_team %}
79
+
###{% data variables.product.prodname_team %}
76
80
77
81
In addition to the features available with {% data variables.product.prodname_free_team %} for organizations, {% data variables.product.prodname_team %} includes:
78
82
* {% data variables.contact.github_support %} via email
@@ -109,7 +113,7 @@ In addition to the features available with {% data variables.product.prodname_fr
109
113
110
114
{% data reusables.actions.actions-billing %}
111
115
112
-
## {% data variables.product.prodname_enterprise %}
116
+
###{% data variables.product.prodname_enterprise %}
113
117
114
118
{% data variables.product.prodname_enterprise %} includes two deployment options: {% data variables.product.prodname_ghe_cloud %}, which is hosted by {% data variables.product.company_short %} in the cloud, and {% data variables.product.prodname_ghe_server %}, which is self-hosted. For more information, see [About {% data variables.product.prodname_dotcom %} for enterprises]({% ifversion fpt %}/enterprise-cloud@latest{% endif %}/admin/overview/about-github-for-enterprises){% ifversion fpt %} in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}.{% endif %}
115
119
@@ -143,4 +147,4 @@ You can set up trials to evaluate {% data variables.product.prodname_ghe_cloud %
143
147
144
148
## Further reading
145
149
146
-
*[About per-user pricing]({% ifversion not ghec %}/enterprise-cloud@latest{% endif %}/billing/managing-the-plan-for-your-github-account/about-per-user-pricing){% ifversion not ghec %} in the {% data variables.product.prodname_ghe_cloud %} documentation{% endif %}
150
+
*[About per-user pricing]({% ifversion not ghec %}/enterprise-cloud@latest{% endif %}/billing/managing-the-plan-for-your-github-account/about-per-user-pricing){% ifversion not ghec %} in the {% data variables.product.prodname_ghe_cloud %} documentation{% endif %}
Copy file name to clipboardExpand all lines: content/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -319,6 +319,14 @@ Prevent commits that include changes in specified file paths from being pushed t
319
319
320
320
{% data reusables.repositories.rulesets-push-rules-path-example %}
321
321
322
+
{% ifversion push-rule-allowed-exceptions %}
323
+
324
+
You can also add allowed exceptions to this rule. A file matching an allowed exception can be pushed even when it also matches a restricted path.
325
+
326
+
{% data reusables.repositories.rulesets-push-rules-allowed-exceptions %}
327
+
328
+
{% endif %}
329
+
322
330
## Restrict file path length
323
331
324
332
Prevent commits that include file paths that exceed a specified character limit from being pushed to the repository.
@@ -327,6 +335,20 @@ Prevent commits that include file paths that exceed a specified character limit
327
335
328
336
Prevent commits that include files with specified file extensions from being pushed to the repository. {% ifversion available-rules-limit %}Limit is 200 entries and up to 200 characters in each entry.{% endif %}
329
337
338
+
{% ifversion push-rule-allowed-exceptions %}
339
+
340
+
If you need to allow an exception for a single file of an otherwise blocked file type, use "Restrict file paths" with a pattern such as `**/*.jar`. Only the "Restrict file paths" and "Restrict file size" rules support allowed exceptions.
341
+
342
+
{% endif %}
343
+
330
344
## Restrict file size
331
345
332
346
Prevent commits that exceed a specified file size limit from being pushed to the repository.
347
+
348
+
{% ifversion push-rule-allowed-exceptions %}
349
+
350
+
You can also add allowed exceptions to this rule. A file matching an allowed exception can exceed the file size limit.
351
+
352
+
{% data reusables.repositories.rulesets-push-rules-allowed-exceptions %}
Copy file name to clipboardExpand all lines: content/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/troubleshooting-rules.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,12 @@ If a branch or tag is targeted by rules restricting the metadata of commits, you
21
21
22
22
When utilizing push rulesets, a maximum of 1000 reference updates are allowed per push. If your push exceeds this limit, it will be rejected. For more information see [AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/creating-rulesets-for-a-repository#creating-a-push-ruleset).
23
23
24
+
{% ifversion push-rule-allowed-exceptions %}
25
+
26
+
If your push is blocked by a rule restricting file paths or file size, check whether the ruleset defines allowed exceptions. A repository, organization, or enterprise administrator can add an allowed exception for a file that must remain pushable. See [Restrict file paths](/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets#restrict-file-paths) and [Restrict file size](/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets#restrict-file-size).
27
+
28
+
{% endif %}
29
+
24
30
Additionally, push rulesets apply to the "Create a blob", "Create a tree", and "Create or update file contents" endpoints in the REST API. See [AUTOTITLE](/rest/git/blobs?apiVersion=2022-11-28#create-a-blob), [AUTOTITLE](/rest/git/trees?apiVersion=2022-11-28#create-a-tree), and [AUTOTITLE](/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents).
Copy file name to clipboardExpand all lines: data/reusables/repositories/push-rulesets-overview.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,11 @@ Push rulesets allow you to:
7
7
***Restrict file paths:** Prevent commits that include changes in specified file paths from being pushed.
8
8
9
9
{% data reusables.repositories.rulesets-push-rules-path-example %}
10
+
11
+
{% ifversion push-rule-allowed-exceptions %}You can add allowed exceptions for paths that should remain pushable.{% endif %}
10
12
***Restrict file path length:** Prevent commits that include file paths that exceed a specified character limit from being pushed.
11
13
***Restrict file extensions:** Prevent commits that include files with specified file extensions from being pushed.
12
-
***Restrict file size:** Prevent commits that exceed a specified file size limit from being pushed.
14
+
***Restrict file size:** Prevent commits that exceed a specified file size limit from being pushed.{% ifversion push-rule-allowed-exceptions %} You can add allowed exceptions for files that may exceed the limit.{% endif %}
Allowed exceptions use `fnmatch` syntax and are validated when you save the ruleset. For example, `**/gradle/wrapper/*.jar` allows the Gradle wrapper JAR file in any directory.
Copy file name to clipboardExpand all lines: data/reusables/repositories/rulesets-push-rules-step.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,3 +5,8 @@ Any push protections you configure will block pushes in this repository and thro
5
5
1. Under "Push protections," click the restrictions you want to apply. Then fill in the details for the restrictions you select.
6
6
7
7
For file path restrictions, you can use partial or full paths. {% data reusables.repositories.rulesets-push-rules-path-example %}
8
+
{%- ifversion push-rule-allowed-exceptions %}
9
+
1. Optionally, for the "Restrict file paths" and "Restrict file size" restrictions, under "Allowed exceptions," add the file paths you want to exempt from the restriction.
10
+
11
+
{% data reusables.repositories.rulesets-push-rules-allowed-exceptions %}
0 commit comments