GitHub: Repository capacity quota limit, github capacity quota limit

Source: Internet
Author: User
Tags using git

GitHub: Repository capacity quota limit, github capacity quota limit

Original article: https://help.github.com/articles/what-is-my-disk-quota/


What is my disk quota? What is the disk quota limit?

GitHub doesn' t have any set disk quotas. we try to provide abundant storage for all Git repositories, within reason. keeping repositories small ensures that our servers are fast and downloads are quick for our users.

Github does not have any disk quota restrictions. We provide sufficient space for the Git repository, but the repository is small enough to ensure the response and download speed of the Github server.

Rule of thumb: 1 GB per repository, 100 MB per file a single warehouse a maximum of 1 GB, a single file a maximum of 100 MB

For best performance, we recommend repositories be kept under 1 GB each. this limit is easy to stay within if large files (typically, binaries) are kept out of the repository. if your repository exceeds 1 GB, you might receive a polite email from support requesting that you reduce the size of the repository to bring it back down under 1GB. to ensure a good experience, we advocate a single warehouse below 1 GB. This rule is not difficult to maintain if you separate large files from the warehouse. If your warehouse exceeds 1 GB, you will receive an email reminding you to streamline the warehouse to less than 1 GB.

In addition, we place a strict limit of files exceeding 100 MB in size. For more information on why this is, see "Working with large files ."

In addition, the limit for a single file is 100 MB, as to why, please check the https://help.github.com/articles/working-with-large-files/


Backups do not try to use GitHub as a backup tool

Though it sounds like Git wocould make an amazing backup tool, Git really doesn' t work out well for backups over the long term. specified solutions that are specifically designed for parameter Ming backups are even less expensive than GitHub's Micro plan.

Some services worth checking out include Arq, Backblaze, Carbonite, Mozy and CrashPlan.

It sounds like Git is a good backup tool. Git is not well qualified for long-term backup. You have many other better options.

Database dumps is not recommended for managing Database files using Git

Large SQL files do not play well with version control systems such as Git. if you are looking to provide your developers with the most recent production dataset, we recommend using Dropbox for sharing files like these among your developers.

If you are looking to backup your production servers, see the Backups section above.

Large SQL database files cannot be well supported by version control tools such as Git.

External dependencies redundant dependent files

Another thing that causes Git repositories to become large and bloated are external dependencies. it's best to leave these files out of the repository and use a package manager instead. most popular extends ages come with package managers that can do this for you. bundler, Node's Package Manager and Maven. they each support using a Git repository directly as well, so you don't need pre-packaged sources.

Another factor that causes too much warehouse is redundant dependent files. The best solution is to separate these files from the warehouse and then use the management application package tool for management.

Packaged release versions

Unfortunately, Git isn' t very good at distributing compiled code and pre-packaged releases. For more information on sharing large files, see "Distributing large binaries ."

Large media files

Binary media files don't get along very well with Git. For these files it's usually best to use a service specifically designed for what you're re using.

For large media files like video and music you shoshould host the files yourself or using a service like Vimeo or Youtube.

GitHub supports rendering design files like PSDs and 3D models.

Because these graphic file types can be very large, GitHub's designers use a service like Dropbox to stay in sync. Only the final image assets are committed into our repositories.

Changing history of an existing repository

If you already have a repository that's quite large, don't fret! You can remove large files from the repository's history to reduce its size. follow the instructions in "Removing sensitive data" to remove the files from the history. after you 've done this, make a fresh clone of the repository to test. if the new repository is smaller in disk use than the original repository, you 've succeeded.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.