File too large checked in: Difference between revisions
(Created page with "FILE TOO LARGE CHECKED IN When I do git push I see this error: Exceeds file size limit 2200000. WHY THE ERROR OCCURS The kent repo has a limit (currently 2200000) on fil...") |
No edit summary |
||
Line 5: | Line 5: | ||
Exceeds file size limit 2200000. | Exceeds file size limit 2200000. | ||
WHY | WHY BIG FILES ARE NOT ALLOWED | ||
The kent repo has a limit (currently | The kent repo has a limit (currently 2.2 MB) on file sizes being checked in. | ||
The restriction has been implemented as a hook in the central shared repo that developers push to. | The restriction has been implemented as a hook in the central shared repo that developers push to. | ||
We already did not want large files to be checked-in, and during the transition from CVS to git, | We already did not want large files to be checked-in, and during the transition from CVS to git, | ||
many huge test files were removed. Also, github has size restrictions which have to be honored. | many huge test files were removed. Also, github has size restrictions which have to be honored. | ||
And people will find kent repo excessively bloated and hard to use without this size restriction. | And people will find kent repo excessively bloated and hard to use without this size restriction. | ||
This is a repository of source code text, which is small. | |||
WHY PEOPLE CHECK IN BIG FILES | WHY PEOPLE CHECK IN BIG FILES |
Revision as of 23:08, 24 April 2021
FILE TOO LARGE CHECKED IN
When I do git push I see this error:
Exceeds file size limit 2200000.
WHY BIG FILES ARE NOT ALLOWED
The kent repo has a limit (currently 2.2 MB) on file sizes being checked in. The restriction has been implemented as a hook in the central shared repo that developers push to. We already did not want large files to be checked-in, and during the transition from CVS to git, many huge test files were removed. Also, github has size restrictions which have to be honored. And people will find kent repo excessively bloated and hard to use without this size restriction. This is a repository of source code text, which is small.
WHY PEOPLE CHECK IN BIG FILES
Because developers are encouraged to make standard tests subdirectory for their kent utilities, there are testing files which get checked in, and unless care is exercised, it is very easy for programmers who deal with giant genomics files to accidentally check them in. Also, sometimes people want to check in PDF documents and some reasonably sized JPG or PNG images. Please use JPG when it is a camera image for better compression and smaller size. PNG is lossless compression, which is bigger, and good for diagrams non-photographic things with a small number of colors. And sometimes, people just make a mistake, or forget about the limit.