天天看點

github空間配額說明

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.

for best performance, we recommend repositories be kept under 1gb each. this limit is easy to stay within if large files (typically, binaries) are kept out of the repository. if your repository exceeds 1gb, you might receive a polite email from support requesting

that you reduce the size of the repository to bring it back down under 1gb.

though it sounds like git would make an amazing backup tool, git really doesn't work out well for backups over the long term. many solutions that are specifically designed for performing backups are even less expensive than github's micro plan.

sharing files like these among your developers.

if you are looking to backup your production servers, see the backups section

above.

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 languages come with package managers that can do this for

shining examples. they each support using a git repository directly as well, so you don't need pre-packaged sources.

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 using.

for large media files like video and music you should host the files yourself or using a service like vimeo or youtube.

stay in sync. only the final image assets are committed into our repositories.