Starting on May 6, 2024, we will begin rolling out a 100 MB file size limit for git pushes to Bitbucket Cloud repositories.
Bitbucket Cloud currently has a repository size limit of 4 GB, which puts a repository in a read-only state if exceeded and requires support intervention to reduce the repository size back below the limit. The most common reason customers exceed this limit is by pushing large files. Customers should be storing large files as Git LFS instead of their repository.
A push file size limit helps customers keep their repositories in the most performant state and below the 4 GB size limit by keeping unwanted files and/or binary files out of source control.
If you encounter the push file size limit, you have two options:
Option 1 (RECOMMENDED):
Any files included in the push that are over 100 MB can be converted to Git LFS to track them outside of the core repository. Learn more about using Git LFS with Bitbucket Cloud.
Option 2:
If using Git LFS is not feasible, the 100 MB push file size limit can be disabled by a repository admin within the Advanced settings in Repository settings.
WARNING: If this limit is disabled, you are at risk of exceeding the 4 GB repository size limit, which will put the repository into read-only mode and require support intervention to reduce the repository size back below the limit when possible or applicable. This can cause significant disruption to your operations.
This limit only applies to pushes. Any files that are over 100 MB and are already in a repository will not be affected, if they are not modified and included in any pushes. If those large files are being frequently modified, we recommend converting them to LFS where practical or necessary. Learn more about converting existing repository files to Git LFS here.
Sam Nichols
8 comments