This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2020-05-23. 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.

Article version: Enterprise Server 2.17

Setting Git push limits

You can enforce a maximum size for Git objects in a repository.

To keep your repository size manageable and prevent performance issues, you can configure a file size limit for repositories on your instance.

By default, when you enforce repository upload limits, people cannot add or update files larger than 100 MB.

Note: Only files larger than 50 MB will be checked against the Git push limit. If you need to set a lower push limit, contact GitHub Enterprise Support or GitHub Premium Support for assistance.

  1. In the upper-right corner of any page, click .
    Rocketship icon for accessing site admin settings
  2. In the left sidebar, click Enterprise.
    Enterprise tab in the Site admin settings
  3. In the enterprise account sidebar, click Settings.
    Settings tab in the enterprise account sidebar
  4. Under " Settings", click Options.
    Options tab in the enterprise account settings sidebar
  5. Under "Repository upload limit", use the drop-down menu and click a maximum object size.
    Drop-down menu with maximum object size options
  6. Optionally, to enforce a maximum upload limit for all repositories on your GitHub Enterprise Server instance, select Enforce on all repositories
    Enforce maximum object size on all repositories option

Ask a human

Can't find what you're looking for?

Contact us