If you are working with large files in your Git repository or the total size of your repository is large, you may face issues performing Git commands such as git cloning the repository or git pushing files. To prevent such issues, we have set size limits for Git repositories and Git files in Backlog.
Maximum file size is 100MB
Each file size will be limited to 100MB. If the size of the file exceeds the limit, you will receive an error message and the push will be rejected.
Maximum git repository size is 10GB
The total git repository size will be limited to 10GB. Warnings and error messages will be alerted to you as your repository size grows, to help ensure that you are aware of reaching or approaching the size limits. If the repository size exceeds the limit, git pushes will be rejected.
To learn more about the different alerts and error messages, and how to resolve issues related to Git file size or repository size limits, please refer to this help.
Examine the size of a single repository
In the Backlog Space Settings page, it will reflect the total size of the Git repositories created within a project. To further examine the size of a single repository created in a project, you can check it in your local repository with the steps below.
- Clone your repository
git clone [url of your repository]
- Change your current working directory to the repository
cd [directory of your repository]
- Check the size of the .git directory
du -sh .git
Note: Any pushes that result in a repository size greater than 10GB are blocked. For suggested resolutions, please refer to the “Error & resolutions when the Git repository size limit has exceeded” article.
Error & resolution when the Git size limit has exceeded