1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Files
docs/content/github/managing-large-files/conditions-for-large-files.md
2020-11-02 15:12:44 -06:00

1.5 KiB

title, intro, redirect_from, versions
title intro redirect_from versions
Conditions for large files {% data variables.product.product_name %} limits the size of files allowed in repositories, and will block a push to a repository if the files are larger than the maximum file limit.
/articles/conditions-for-large-files
free-pro-team enterprise-server github-ae
* * *

{% data reusables.large_files.use_lfs_tip %}

Warning for files larger than {% data variables.large_files.warning_size %}

If you attempt to add or update a file that is larger than {% data variables.large_files.warning_size %}, you will receive a warning from Git. The changes will still successfully push to your repository, but you can consider removing the commit to minimize performance impact. For more information, see "Removing files from a repository's history."

Blocked pushes for large files

{% if enterpriseServerVersions contains currentVersion or currentVersion == "github-ae@latest" %}By default, {% endif %}{% data variables.product.product_name %} blocks pushes that exceed {% data variables.large_files.max_github_size %}. {% if enterpriseServerVersions contains currentVersion or currentVersion == "github-ae@latest" %}However, a site administrator can configure a different limit for {% data variables.product.product_location %}. For more information, see "[Setting Git push limits](/enterprise/{{ currentVersion }}/admin/guides/installation/setting-git-push-limits)".{% endif %}