👋 We've unified all of GitHub's product documentation in one place! Check out the content for REST API, GraphQL API, and Developers. Learn more on the GitHub blog.
Article version: Enterprise Server 2.19

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